mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Show number of files selected in local buffer, if any
Even if selection mode is not on, it helps to show number of files currently selected in local buffer. Say, after running a plugin selection mode goes off. However, if the plugin doesn't clear the selection buffer, the files still remain selected in buffer.
This commit is contained in:
parent
30ee27802e
commit
831287c92e
|
@ -72,7 +72,7 @@ Plugins extend the capabilities of `nnn`. They are _executable_ scripts (or bina
|
||||||
| [upload](upload) | Upload to Firefox Send or ix.io (text) or file.io (bin) | sh | [ffsend](https://github.com/timvisee/ffsend), curl, jq, tr |
|
| [upload](upload) | Upload to Firefox Send or ix.io (text) or file.io (bin) | sh | [ffsend](https://github.com/timvisee/ffsend), curl, jq, tr |
|
||||||
| [vidthumb](vidthumb) | Show video thumbnails in terminal | sh | [ffmpegthumbnailer](https://github.com/dirkvdb/ffmpegthumbnailer),<br>[lsix](https://github.com/hackerb9/lsix) |
|
| [vidthumb](vidthumb) | Show video thumbnails in terminal | sh | [ffmpegthumbnailer](https://github.com/dirkvdb/ffmpegthumbnailer),<br>[lsix](https://github.com/hackerb9/lsix) |
|
||||||
| [wall](wall) | Set wallpaper or change colorscheme | sh | nitrogen/pywal |
|
| [wall](wall) | Set wallpaper or change colorscheme | sh | nitrogen/pywal |
|
||||||
| [x2sel](x2sel) | Copy `\n`-separated file list from system clipboard to sel | sh | _see in-file docs_ |
|
| [x2sel](x2sel) | Copy file list from system clipboard to selection | sh | _see in-file docs_ |
|
||||||
| [xdgdefault](xdgdefault) | Set the default app for the hovered file type | sh | xdg-utils, fzf |
|
| [xdgdefault](xdgdefault) | Set the default app for the hovered file type | sh | xdg-utils, fzf |
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
|
@ -5751,15 +5751,15 @@ static void statusbar(char *path)
|
||||||
|
|
||||||
printw("%d/%s ", cur + 1, xitoa(ndents));
|
printw("%d/%s ", cur + 1, xitoa(ndents));
|
||||||
|
|
||||||
if (g_state.selmode) {
|
if (g_state.selmode || nselected) {
|
||||||
attron(A_REVERSE);
|
attron(A_REVERSE);
|
||||||
addch(' ');
|
addch(' ');
|
||||||
if (g_state.rangesel)
|
if (g_state.rangesel)
|
||||||
addch('*');
|
addch('*');
|
||||||
else if (nselected)
|
else if (g_state.selmode)
|
||||||
addstr(xitoa(nselected));
|
|
||||||
else
|
|
||||||
addch('+');
|
addch('+');
|
||||||
|
if (nselected)
|
||||||
|
addstr(xitoa(nselected));
|
||||||
addch(' ');
|
addch(' ');
|
||||||
attroff(A_REVERSE);
|
attroff(A_REVERSE);
|
||||||
addch(' ');
|
addch(' ');
|
||||||
|
|
Loading…
Reference in a new issue