"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/README.md" between
nnn-v4.3.tar.gz and nnn-v4.4.tar.gz

About: nnn is a full-featured terminal file manager.

README.md  (nnn-v4.3):README.md  (nnn-v4.4)
skipping to change at line 167 skipping to change at line 167
Note: Do not use `*` with programs those run and exit e.g. cat. Note: Do not use `*` with programs those run and exit e.g. cat.
#### Run a GUI app as plugin #### Run a GUI app as plugin
To run a GUI app as plugin, add a `&` after `!`. To run a GUI app as plugin, add a `&` after `!`.
```sh ```sh
export NNN_PLUG='m:-!&mousepad $nnn' export NNN_PLUG='m:-!&mousepad $nnn'
``` ```
Note: $nnn must be the last argument in this case. Note: `$nnn` must be the last argument in this case.
#### Page non-interactive command output #### Page non-interactive command output
To show the output of run-and-exit commands which do not need user input, add `| ` (pipe) after `!`. To show the output of run-and-exit commands which do not need user input, add `| ` (pipe) after `!`.
```sh ```sh
export NNN_PLUG='m:-!|mediainfo $nnn;t:-!|tree -ps;l:-!|ls -lah --group-director ies-first' export NNN_PLUG='m:-!|mediainfo $nnn;t:-!|tree -ps;l:-!|ls -lah --group-director ies-first'
``` ```
This option is incompatible with `&` (terminal output is masked for GUI programs ) and ignores `*` (output is already paged for user). This option is incompatible with `&` (terminal output is masked for GUI programs ) and ignores `*` (output is already paged for user).
skipping to change at line 189 skipping to change at line 189
Notes: Notes:
1. Use single quotes for `$NNN_PLUG` so `$nnn` is not interpreted 1. Use single quotes for `$NNN_PLUG` so `$nnn` is not interpreted
2. (_Again_) add `!` before the command 2. (_Again_) add `!` before the command
3. To disable directory refresh after running a _command as plugin_, prefix with `-!` 3. To disable directory refresh after running a _command as plugin_, prefix with `-!`
#### Some useful key-command examples #### Some useful key-command examples
| Key:Command | Description | | Key:Command | Description |
|---|---| |---|---|
| `c:!convert $nnn png:- \| xclip -sel clipboard -t image/png*` | Copy image to clipboard |
| `e:-!sudo -E vim $nnn*` | Edit file as root in vim | | `e:-!sudo -E vim $nnn*` | Edit file as root in vim |
| `g:-!git diff` | Show git diff | | `g:-!git diff` | Show git diff |
| `h:-!hx $nnn*` | Open hovered file in [hx](https://github.com/krpors/hx) hex e ditor | | `h:-!hx $nnn*` | Open hovered file in [hx](https://github.com/krpors/hx) hex e ditor |
| `k:-!fuser -kiv $nnn*` | Interactively kill process(es) using hovered file | | `k:-!fuser -kiv $nnn*` | Interactively kill process(es) using hovered file |
| `l:-!git log` | Show git log | | `l:-!git log` | Show git log |
| `n:-!vi /home/user/Dropbox/dir/note*` | Take quick notes in a synced file/dir of notes | | `n:-!vi /home/user/Dropbox/dir/note*` | Take quick notes in a synced file/dir of notes |
| `p:-!less -iR $nnn*` | Page through hovered file in less | | `p:-!less -iR $nnn*` | Page through hovered file in less |
| `s:-!&smplayer -minigui $nnn` | Play hovered media file, even unfinished downl oad | | `s:-!&smplayer -minigui $nnn` | Play hovered media file, even unfinished downl oad |
| `x:!chmod +x $nnn` | Make the hovered file executable | | `x:!chmod +x $nnn` | Make the hovered file executable |
| `y:-!sync*` | Flush cached writes | | `y:-!sync*` | Flush cached writes |
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)