aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-05-13 07:06:59 +0200
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-13 12:29:47 +0530
commit2200a1c9be7c63dd6b2c1abc7f6324a9c79f2fe5 (patch)
tree60078d485b61901bea13a605fff7828be3e9e38d /plugins
parent770bb47dafd250c16c9c9850e641c3dc309fc45f (diff)
downloadnnn-2200a1c9be7c63dd6b2c1abc7f6324a9c79f2fe5.tar.gz
Allow launching plugins with Alt + plugin's key (#569)
* Allow launching plugins with Alt + plugin's key * Fix Alt key in filter/prompts modes * Fix handling Alt key in nextsel() In filter mode: run the associated plugin. In prompt mode: just throw out the Alt+key input. In nextsel(): differentiate Alt+key and Esc
Diffstat (limited to 'plugins')
-rw-r--r--plugins/README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/README.md b/plugins/README.md
index b2254f2..a1f7c24 100644
--- a/plugins/README.md
+++ b/plugins/README.md
@@ -78,7 +78,7 @@ Plugins are installed to `${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins`.
## Invoking a plugin
-Press the plugin shortcut (<kbd>;</kbd> or <kbd>^S</kbd>) followed by the assigned key. E.g., with the below config:
+Press the plugin shortcut (<kbd>;</kbd> or <kbd>^S</kbd>) followed by the assigned key character. E.g., with the below config:
```sh
export NNN_PLUG='f:finder;o:fzopen;p:mocplay;d:diffs;t:nmount;v:imgview'
@@ -86,6 +86,8 @@ export NNN_PLUG='f:finder;o:fzopen;p:mocplay;d:diffs;t:nmount;v:imgview'
Plugin `finder` can be run with the keybind <kbd>;f</kbd>, `fzopen` can be run with <kbd>;o</kbd> and so on... The key vs. plugin pairs are shown in the help and config screen.
+Alternative way to run a plugin directly - prefix with <kbd>Alt</kbd> (i.e. <kbd>Alt+key_char</kbd>).
+
To select and invoke a plugin from the plugin directory, press <kbd>Enter</kbd> (to _enter_ the plugin dir) after the plugin shortcut.
#### Skip directory refresh after running a plugin