mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
NNN_PLUG: use & as run-gui-cmd-as-plugin symbol (earlier |)
This commit is contained in:
parent
9de941306c
commit
f24b82a750
6
nnn.1
6
nnn.1
|
@ -405,9 +405,9 @@ separated by \fI;\fR:
|
||||||
|
|
||||||
export NNN_PLUG='y:-!sync*'
|
export NNN_PLUG='y:-!sync*'
|
||||||
|
|
||||||
6. To run a \fIGUI app as plugin\fR, add a \fB|\fR after \fB!\fR
|
6. To run a \fIGUI app as plugin\fR, add a \fB&\fR after \fB!\fR
|
||||||
|
|
||||||
export NNN_PLUG='m:-!|mousepad $nnn'
|
export NNN_PLUG='m:-!&mousepad $nnn'
|
||||||
|
|
||||||
EXAMPLES:
|
EXAMPLES:
|
||||||
----------------------------------- + -------------------------------------------------
|
----------------------------------- + -------------------------------------------------
|
||||||
|
@ -419,7 +419,7 @@ separated by \fI;\fR:
|
||||||
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 download
|
s:-!&smplayer -minigui $nnn | Play hovered media file, even unfinished download
|
||||||
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
|
||||||
----------------------------------- + -------------------------------------------------
|
----------------------------------- + -------------------------------------------------
|
||||||
|
|
|
@ -146,10 +146,10 @@ Note: Do not use `*` with programs those run and exit e.g. cat.
|
||||||
|
|
||||||
#### Run GUI app as plugin
|
#### Run GUI app as plugin
|
||||||
|
|
||||||
To run a GUI app as plugin, add a `|` after `!`. For example:
|
To run a GUI app as plugin, add a `&` after `!`. For example:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export NNN_PLUG='m:-!|mousepad $nnn'
|
export NNN_PLUG='m:-!&mousepad $nnn'
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
@ -169,7 +169,7 @@ Notes:
|
||||||
| `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 download |
|
| `s:-!&smplayer -minigui $nnn` | Play hovered media file, even unfinished download |
|
||||||
| `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 |
|
||||||
|
|
||||||
|
|
|
@ -4821,7 +4821,7 @@ static bool run_selected_plugin(char **path, const char *file, char *runfile, ch
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
/* Check if GUI flags are to be used */
|
/* Check if GUI flags are to be used */
|
||||||
if (*file == '|') {
|
if (*file == '&') {
|
||||||
flags = F_NOTRACE | F_NOWAIT;
|
flags = F_NOTRACE | F_NOWAIT;
|
||||||
++file;
|
++file;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue