Commit graph

22 commits

Author SHA1 Message Date
KlzXS b392dd3723
Added -- to all instances of cp, mv or rm dealing with user provided paths 2024-02-13 14:32:42 +01:00
NRK bc6a09475d nmv: ensure the tmpfile is cleaned up in all cases
currently, there's a couple exit paths where the tmpfile doesn't get
cleaned up.
2023-02-19 21:14:53 +06:00
NRK 8c23c3da4e fix shellcheck issues 2023-02-17 20:12:07 +06:00
NRK 4867fa2bc7 plugin-helper: add nnn_use_selection() 2023-02-17 19:54:36 +06:00
NRK 8ad5c87107 nmv: prefer selection if -u is active
the rename plugin always asks for "selection vs current" even when -u
flag is active. pass it to the plugin via `NNN_PREFER_SELECTION` so that
there's less distracting prompts.
2023-02-17 19:22:46 +06:00
NRK 2fedc92efc export NNN_INCLUDE_HIDDEN to plugins
Closes: https://github.com/jarun/nnn/issues/1308
2022-02-22 17:40:44 +06:00
KlzXS 184f134c9e
Respect NNN_TRASH in .nmv 2022-02-13 10:37:21 +01:00
KlzXS 875a4d8c23
-n exists for a reason 2021-11-10 21:56:51 +01:00
KlzXS a300e3267f
Env variable should be not set, not set to 0 2021-11-10 21:51:05 +01:00
KlzXS 22096ee0cd
Updated .nmv to support current when NNN_LIST
NNN_LIST now should pass listroo
2021-11-07 22:08:43 +01:00
KlzXS eb769c0de5
Resolve symlinks one level for .nmv when in list mode 2021-11-03 08:37:08 +05:30
KlzXS b492dfd7ca
Added recursive capabilities to .nmv 2021-10-03 11:42:02 +02:00
KlzXS 002758063e
Update .nmv 2021-05-01 06:23:39 +05:30
Arun Prakash Jana 2dccb94f3f Revert "Favor selection over current for nmv"
This reverts commit c9c1d0d454.
2021-03-17 22:19:01 +05:30
KlzXS c9c1d0d454
Favor selection over current for nmv 2021-02-16 21:46:56 +00:00
Arun Prakash Jana f4cb5c63d0 Revert "use $VISUAL environment variable for plugins"
This reverts commit 9f3fbd93ce.
2020-11-28 10:03:05 +05:30
tchici 9f3fbd93ce
use $VISUAL environment variable for plugins
falls back to previous behavior if $VISUAL is not set ($EDITOR then vi)
2020-11-22 16:18:06 +00:00
Arun Prakash Jana bc572df55a
NNN_SEL: custom selection file 2020-04-24 18:12:18 +05:30
KlzXS 00148360e4
Plugin improvements (#531)
* Added padding for numbers in .nmv

* Add skim as an option in fzopen

* Remove unnecessary eval

Thanks @leovilok!

Co-Authored-By: lvgx <l@vgx.fr>

* Added note about whitespace

Co-authored-by: lvgx <l@vgx.fr>
2020-04-20 22:39:30 +05:30
KlzXS aab90bf515
Add verbose option (#497) 2020-03-21 00:58:42 +05:30
Arun Prakash Jana ea2de804f8
batch rename: check dep, handle invalid input 2020-03-15 20:26:53 +05:30
KlzXS c215c5de80
Convert batchrename to bash and rename it (#495) 2020-03-15 19:49:05 +05:30
Renamed from plugins/batchrename (Browse further)