]> Sergey Matveev's repositories - nnn.git/commit
Always prefer selection over current file
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 9 Feb 2021 23:18:11 +0000 (04:48 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 9 Feb 2021 23:42:40 +0000 (05:12 +0530)
commit600286b62724829e10fce1df1b014f392e44f4aa
tree4cf72b73c44aa12e3905a7f162b8007a87cb90fc
parent026f76f14cdf6f67d29ed3cfd5804b2e2890bf6f
Always prefer selection over current file

If you have selected some files, you intend to work on them. Also, this prompt
expects <kbd>c</kbd> / <kbd>s</kbd> which should cancel the next prompt in the
delete workflow. Rest of the three workflows are non-fatal.

Benefits of removing this option:
- code reduction
- one less step in the relevant workflows (more than one prompt feels dragged)

This prompt shows in the following workflows:
- delete: users have explicitly requested to prefer sel over current
- batch rename: key <kbd>^R</kbd> renames a single file
- archive: in most of the cases the user would want to archive the selection
- create sym/hard link: not a frequently used workflow (in general)
misc/auto-completion/bash/nnn-completion.bash
misc/auto-completion/fish/nnn.fish
misc/auto-completion/zsh/_nnn
nnn.1
src/nnn.c