mirror of https://github.com/jarun/nnn.git
Updated Advanced use cases (markdown)
parent
eaebd0212d
commit
c862d4c066
|
@ -137,11 +137,11 @@ while :; do case $1 in
|
|||
*) break ;;
|
||||
esac done
|
||||
file="${file##/*/}"
|
||||
st -c picker sh -c "nnn -S -s picker -p - | awk '{ print system(\"[ -d \" \$0 \" ]\") ? \$0: \$0\"/${file##/*/}\" }' > /proc/$$/fd/1"
|
||||
st -c picker sh -c "nnn -JS -s picker -p - | awk '{ print system(\"[ -d \" \$0 \" ]\") ? \$0: \$0\"/${file##/*/}\" }' > /proc/$$/fd/1"
|
||||
|
||||
```
|
||||
|
||||
This example sets the class for `st` to `picker` and `nnn` uses a named session `picker`. This allows you to for example have the picker window float by default in your window manager and `nnn` remembers where your previous "Save as..." target was. Replace with your preferred terminal and `nnn` options if applicable.
|
||||
This example sets the class for `st` to `picker` and `nnn` uses a named session `picker`. This allows you to for example have the picker window float by default in your window manager and `nnn` remembers where your previous "Save as..." target was. The `-J` option makes sure that the saved session saves the cursor position on the selected file/directory. Replace with your preferred terminal and `nnn` options if applicable.
|
||||
|
||||
Then create a browser wrapper that launches your browser with `XDG_CURRENT_DESKTOP=KDE`:
|
||||
```sh
|
||||
|
|
Loading…
Reference in New Issue