Skip to content

Commit

Permalink
version 0.2.5, add --dry-run and --config cli args
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Apr 26, 2019
1 parent ce6fedb commit 6d6b1a0
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 73 deletions.
51 changes: 30 additions & 21 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,31 @@ All notable changes to this project will be documented in this file. This change

** Unreleased

[Unreleased]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.2.2...HEAD
[Unreleased Commits]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.2.5...HEAD

** 0.2.2
** 0.2.5 - 2019-04-26
*** Added
- ~goku -d~ or ~goku --dry-run~ for testing configs.
- ~goku -c~ or ~goku --config~ for testing files in other place.
*** Fixed
- rewrite some functions the clojure way.

[commits in 0.2.5]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.2.2...0.2.5

** 0.2.2 - 2019-04-21
*** Added
- user can now specify ~.edn~ config file path with env variable
~GOKU_EDN_CONFIG_FILE~.

[0.2.2]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.2.1...0.2.2
[commits in 0.2.2]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.2.1...0.2.2

** 0.2.1
** 0.2.1 - 2019-03-15
*** Added
- support optional arguments in tempaltes, user can now omit arguments from the tail

[0.2.1]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.2.0...0.2.1
[commits in 0.2.1]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.2.0...0.2.1

** 0.2.0
** 0.2.0 - 2019-03-12
*** Added
- multiple profile support
- QWER as right command control option shift
Expand All @@ -27,19 +36,19 @@ All notable changes to this project will be documented in this file. This change
- some macos functionaly keys are set as consumer key, make them can be used in
to defination.

[0.2.0]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.16...0.2.0
[commits in 0.2.0]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.16...0.2.0

** 0.1.16 - 2019-01-16
*** Added
- user can now specify not already defined conditions using keyword

[0.1.16]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.15...0.1.16
[commits in 0.1.16]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.15...0.1.16

** 0.1.15 - 2019-01-14
*** Fixed
- can't read already defined :layers in :layers pre-defination

[0.1.15]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.14...0.1.15
[commits in 0.1.15]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.14...0.1.15

** 0.1.14 - 2018-12-22
*** Added
Expand All @@ -48,36 +57,36 @@ All notable changes to this project will be documented in this file. This change
*** Fixed
- error when running with brew service caused by new version of joker (v0.10.2)

[0.1.14]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.13...v0.1.14
[commits in 0.1.14]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.13...v0.1.14

** 0.1.13 - 2018-12-07
*** Added
- add command to open log file
- use [[https://github.com/candid82/joker][joker]] to check edn file syntax, (add joker as dependency via homebrew)

[0.1.13]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.12...v0.1.13
[commits in 0.1.13]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.12...v0.1.13

** 0.1.12 - 2018-12-07
*** Added
- error message when goku can't find the "Goku" profile
- now we support ~{:held <to defination>}~ ~{:dealyed {:invoked <to defination>} {:dealyed <to defination>}}~ in simlayer keys (not simlayer defination) #15

[0.1.12]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.11...v0.1.12
[commits in 0.1.12]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.11...v0.1.12

** 0.1.11 - 2018-10-17
*** Fixed
- error while parsing ~{:any :key_code}~ as <from> section in rule
- more friendly error message, simply removed the stacktrace of the AssertionError

[0.1.11]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.10...v0.1.11
[commits in 0.1.11]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.10...v0.1.11

** 0.1.10 - 2018-10-14
*** Fixed
- documentation typo, make readme more clear
*** Added
- now user can override ~to_if_alone~ when defining ~:layers~

[0.1.10]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.9...v0.1.10
[commits in 0.1.10]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.9...v0.1.10

** 0.1.9 - 2018-10-02
*** Fixed
Expand All @@ -87,7 +96,7 @@ now predefined input sources is ~:input-sources~ instead of ~:input_sources~
now the brew service log file located at ~~/Library/Logs/goku.log~, contains
both stderr and stdout.

[0.1.9]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.8...v0.1.9
[commits in 0.1.9]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.8...v0.1.9

** 0.1.8 - 2018-09-24
*** Added
Expand Down Expand Up @@ -145,13 +154,13 @@ both stderr and stdout.
[:i "open -a iTunes.app" :chromes]]}]}
#+end_src

[0.1.8]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.7...v0.1.8
[commits in 0.1.8]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.7...v0.1.8

** 0.1.7 - 2018-09-19
*** Fixed
- use keyword defined in :input-sources to as <to> key

[0.1.7]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.6...v0.1.7
[commits in 0.1.7]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.6...v0.1.7

** 0.1.6 - 2018-09-15
*** Fixed
Expand All @@ -160,20 +169,20 @@ both stderr and stdout.
- can install through brew now, ~brew install yqrashawn/goku/goku~
- ~gokuw~ as watch script, ~brew services start goku~ as service

[0.1.6]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.3...v0.1.6
[commits in 0.1.6]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.3...v0.1.6

** 0.1.3 - 2018-09-11
*** Fixed
- seems the previous release version is not usable, the $HOME variable is always
/Users/.travis, fixed that.

[0.1.3]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.2...v0.1.3
[commits in 0.1.3]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.2...v0.1.3

** 0.1.2 - 2018-09-10
*** Fixed
- typo in rules, seems I spell all "cancel" wrong.

[0.1.2]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.1...v0.1.2
[commits in 0.1.2]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.1...v0.1.2

** 0.1.1 - 2018-09-07
*** Added
Expand All @@ -184,7 +193,7 @@ both stderr and stdout.
- karabiner error while using ~:mission_control~
- multiple devices condition bug

[0.1.1]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.0...v0.1.1
[commits in 0.1.1]: https://github.com/yqrashawn/GokuRakuJoudo/compare/v0.1.0...v0.1.1

** 0.1.0 - 2018-09-07
*** Added
Expand Down
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,29 @@ significantly as you can create new rules as little as few characters.

## Usage

Make sure you have a profile named "Default" in Karabiner GUI tool.
Make sure you have a profile named "Default" in Karabiner GUI tool. You can
specify your own profile name [using `:profiles`
keyword](https://github.com/yqrashawn/GokuRakuJoudo/blob/master/examples.org#profiles-wip).

![img](./resources/images/karabiner-profile.jpg)

Goku reads `karabiner.edn` file which holds your Karabiner config. This file
should be placed inside \`~/.config/\` directory on your mac. If you use a dots
dir to hold your config files, you can symlink \`karabiner.edn\` and Goku will
pick up the changes too. Starting on version 0.2.2, you can specify your config
file path using environment variable `GOKU_EDN_CONFIG_FILE`.
should be placed inside `~/.config/` directory on your mac. Starting from
version 0.2.2, you can specify your config file path using environment variable
`GOKU_EDN_CONFIG_FILE`.

Goku provides two commands:

`goku`: Will update karabiner.json once.
`gokuw`: Will keep watching your `karabiner.edn` and on saving, will update your
configuration.
`karabiner.json` configuration.

Run command `brew services start goku` to use it as a service (runs `gokuw` in
background). When Goku is ran as service, the logs are kept inside
background). When Goku is ranning as service, the logs are kept inside
`~/Library/Logs/goku.log`.

Try `goku -h` to find out more.


<a id="tutorial"></a>

Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
:dependencies [[org.clojure/clojure "1.8.0"]
[prismatic/schema "1.1.9"]
[org.clojure/tools.logging "0.4.1"]
[org.clojure/tools.cli "0.3.7"]
[org.clojure/tools.cli "0.4.2"]
[me.raynes/fs "1.4.6"]
[cheshire "5.8.0"]
[environ "1.1.0"]]
Expand Down
Loading

0 comments on commit 6d6b1a0

Please sign in to comment.