diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-08-26 04:02:04 +0200 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-08-26 04:02:04 +0200 |
| commit | 275e1b40ef37cdff29bca7c9260b229ca8800516 (patch) | |
| tree | 7a4ff38ece65c3b4cc78bace559ddb27f9c7ec1d | |
| parent | b7e666dcb3f490b3ea9e8dd14468e3c32905a2c8 (diff) | |
Document a bit the connect options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | rc/connect.kak | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -157,8 +157,8 @@ set-option global connect_environment %{ ### Custom connect commands -You can also define your own connect commands in -`$XDG_CONFIG_HOME/kak/connect/commands` and `$XDG_CONFIG_HOME/kak/connect/aliases`. +You can also define your own connect commands by setting the `connect_paths` option. +By default, it is set to your `$XDG_CONFIG_HOME/kak/connect/commands` and `$XDG_CONFIG_HOME/kak/connect/aliases`. See [commands] and [aliases] for examples. ### Custom prompt diff --git a/rc/connect.kak b/rc/connect.kak index 3148bd9..bff5c4d 100644 --- a/rc/connect.kak +++ b/rc/connect.kak @@ -6,10 +6,10 @@ provide-module connect %{ require-module prelude # Options - declare-option str connect_environment + declare-option -docstring 'connect environment' str connect_environment # Connect paths - declare-option str-list connect_paths + declare-option -docstring 'connect paths' str-list connect_paths # Internal variable to mirror the connect paths as PATH. declare-option -hidden str connect_environment_paths @@ -34,7 +34,7 @@ provide-module connect %{ } # Initialize the option with the user config paths - declare-option str-list connect_paths "%val{config}/connect/aliases" "%val{config}/connect/commands" + set-option global connect_paths "%val{config}/connect/aliases" "%val{config}/connect/commands" # Commands define-command connect-terminal -params .. -shell-completion -docstring 'Open a new terminal' %{ |
