diff options
author | 2017-03-29 20:08:34 +0530 | |
---|---|---|
committer | 2017-03-29 21:43:39 +0530 | |
commit | c64327b4a6d3af4e65b2a82b334b6a083082083c (patch) | |
tree | 3552068e028de12aac60b79f9c9701780ef3f6be | |
parent | 56dca997b92dd7e0464970fc683eb1f583004038 (diff) | |
download | nnn-c64327b4a6d3af4e65b2a82b334b6a083082083c.tar.gz |
Re-scan directory contents after spawning a shell
The contents of the directory may be changed from the shell by adding or deleting content. Permissions may have changed too. We must re-populate the contents of the current directory.
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | noice.c | 3 |
2 files changed, 6 insertions, 5 deletions
@@ -78,7 +78,7 @@ No plans of packaging at the time. Start noice (default: current directory): $ noice [path_to_dir] -`>` indicates the currently selected item. +`>` indicates the currently selected entry. ### Keyboard shortcuts @@ -94,12 +94,12 @@ Start noice (default: current directory): | `End`, `Ctrl-e`, `$` | jump to last dir entry | | `~` | jump to home dir | | `/`, `&` | filter dir contents | -| `c` | change dir | +| `c` | show change dir prompt | | `.` | toggle hide dot files | | `t` | toggle sort by modified time | | `!` | spawn a shell in current dir | -| `e` | edit item in `vim` | -| `p` | open item with `less` pager | +| `e` | edit entry in `vim` | +| `p` | open entry with `less` pager | | `z` | run `top` | | `Ctrl-l` | redraw window | | `q` | quit noice | @@ -819,7 +819,8 @@ nochange: exitcurses(); spawn(run, NULL, path); initcurses(); - break; + /* Re-populate as directory content may have changed */ + goto begin; case SEL_RUNARG: run = xgetenv(env, run); exitcurses(); |