Updated Basic use cases (markdown)

Terminator X 2021-10-11 11:49:50 +05:30
parent 1fae047e6d
commit 7f7567f049

@ -157,7 +157,7 @@ It has 2 methods to convert PDF to text. Please go through the script for the de
## Detached text
Set up a script (say `ewrap`) to open the editor in a new `tmux` split-pane or a new `xfce4-terminal` tab/window (you may want to change the terminal and the editor in the sample snippet below):
1. Set up a script (say `ewrap`) to open the editor in a new `tmux` split-pane or a new `xfce4-terminal` tab/window (you may want to change the terminal and the editor in the sample snippet below):
```sh
#!/usr/bin/env sh
@ -171,13 +171,13 @@ else
fi
```
**Make `ewrap` executable and drop it somewhere in your `$PATH`.**
2. Make `ewrap` executable and drop it somewhere in your `$PATH`.
Set `$VISUAL` (or `$EDITOR` if you don't have `$VISUAL`) to `ewrap`:
3. Set `$VISUAL` (or `$EDITOR` if you don't have `$VISUAL`) to `ewrap`:
export VISUAL=ewrap
Start `nnn` with the program option `-e`.
4. Start `nnn` with the program option `-e`.
If you are using `nuke` as opener modify it to use `ewrap` for text files. You can also enhance `ewrap` (re-use code from `nuke`) to handle text files by file type and use the right program (e.g. w3m for html, man for man pages). That way you don't have to change the opener.