mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Document dual pane alias with dvtm
This commit is contained in:
parent
8fe4761092
commit
a498636263
|
@ -52,6 +52,7 @@ Demo videos: i. [`nnn` on Termux (Android)](https://www.youtube.com/watch?v=Abaa
|
||||||
- [Leader key](#leader-key)
|
- [Leader key](#leader-key)
|
||||||
- [Contexts](#contexts)
|
- [Contexts](#contexts)
|
||||||
- [Context-specific color](#context-specific-color)
|
- [Context-specific color](#context-specific-color)
|
||||||
|
- [Dual pane](#dual-pane)
|
||||||
- [Selection](#selection)
|
- [Selection](#selection)
|
||||||
- [Filters](#filters)
|
- [Filters](#filters)
|
||||||
- [Navigate-as-you-type](#navigate-as-you-type)
|
- [Navigate-as-you-type](#navigate-as-you-type)
|
||||||
|
@ -318,6 +319,14 @@ Each context can have its own directory color specified:
|
||||||
export NNN_CONTEXT_COLORS='1234'
|
export NNN_CONTEXT_COLORS='1234'
|
||||||
colors: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
|
colors: 0-black, 1-red, 2-green, 3-yellow, 4-blue (default), 5-magenta, 6-cyan, 7-white
|
||||||
|
|
||||||
|
#### Dual pane
|
||||||
|
|
||||||
|
Any number of `nnn` instances can be opened simultaneously using the lightweight terminal multiplexter [`dvtm`](http://www.brain-dump.org/projects/dvtm/). For example, to open 2 instances or a dual pane mode, have the following alias:
|
||||||
|
|
||||||
|
alias n2="dvtm -m '^c' nnn nnn"
|
||||||
|
|
||||||
|
Note that the `dvtm` MOD key is redefined to <kbd>^C</kbd> as the default one (<kbd>^G</kbd>) is also an `nnn` shortcut.
|
||||||
|
|
||||||
#### Selection
|
#### Selection
|
||||||
|
|
||||||
Use <kbd>^K</kbd> to select the file under the cursor.
|
Use <kbd>^K</kbd> to select the file under the cursor.
|
||||||
|
|
|
@ -274,8 +274,6 @@ static settings cfg = {
|
||||||
|
|
||||||
static context g_ctx[CTX_MAX] __attribute__ ((aligned));
|
static context g_ctx[CTX_MAX] __attribute__ ((aligned));
|
||||||
|
|
||||||
static struct entry *dents;
|
|
||||||
static char *pnamebuf, *pcopybuf;
|
|
||||||
static int ndents, cur, curscroll, total_dents = ENTRY_INCR;
|
static int ndents, cur, curscroll, total_dents = ENTRY_INCR;
|
||||||
static int xlines, xcols;
|
static int xlines, xcols;
|
||||||
static uint idle;
|
static uint idle;
|
||||||
|
@ -290,6 +288,8 @@ static char *initpath;
|
||||||
static char *cfgdir;
|
static char *cfgdir;
|
||||||
static char *g_cppath;
|
static char *g_cppath;
|
||||||
static char *plugindir;
|
static char *plugindir;
|
||||||
|
static char *pnamebuf, *pcopybuf;
|
||||||
|
static struct entry *dents;
|
||||||
static blkcnt_t ent_blocks;
|
static blkcnt_t ent_blocks;
|
||||||
static blkcnt_t dir_blocks;
|
static blkcnt_t dir_blocks;
|
||||||
static ulong num_files;
|
static ulong num_files;
|
||||||
|
|
Loading…
Reference in a new issue