From 7f7567f0490a2a7179677ef39cbd8abd81447146 Mon Sep 17 00:00:00 2001 From: Terminator X Date: Mon, 11 Oct 2021 11:49:50 +0530 Subject: [PATCH] Updated Basic use cases (markdown) --- Basic-use-cases.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Basic-use-cases.md b/Basic-use-cases.md index 8cd9cae..184da04 100644 --- a/Basic-use-cases.md +++ b/Basic-use-cases.md @@ -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.