Commit graph

3853 commits

Author SHA1 Message Date
Luuk van Baal e0c1ed273f
Replace restorepreview workaround 2021-12-14 17:16:56 +01:00
Arun 40b2250209
Merge pull request #1247 from KlzXS/posix_sed
Remove -E from sed in plugins
2021-11-28 06:45:30 +05:30
Arun eb62775852
Merge pull request #1248 from yeetologist/master
Fix zsh auto-completion typo
2021-11-27 15:43:27 +05:30
yeetologist c147414bc7 Fix zsh auto-completion typo 2021-11-27 11:57:45 +07:00
Arun Prakash Jana 1e8b8d14ff
Remove redundant line 2021-11-27 09:48:21 +05:30
KlzXS 8f2e17303e
Remove -E from sed in plugins 2021-11-26 10:33:11 +01:00
Arun 1bc234b0eb
Merge pull request #1244 from N-R-K/malloc_size
fix the malloc size in get_archive_cmd
2021-11-24 22:48:02 +05:30
NRK bd8faa2dd8 use patterns[] for archive command string 2021-11-24 22:34:22 +06:00
NRK 578e6d1aaa use a macro for the format string
this makes things slightly more robust as changing the string inside the
macro would automatically change the malloc size.
2021-11-24 22:06:05 +06:00
NRK f7091f78e5 fix the malloc size in get_archive_cmd
since the tr hack was removed in deead97, the format string is no longer
70 chars. also removes unnecessary malloc casting.
2021-11-24 21:53:11 +06:00
Arun c87b67e073
Merge pull request #1243 from omar-polo/sed-misc
misc sed tweaks
2021-11-24 18:25:13 +05:30
Omar Polo fb3d3ab0ef define SED only if not already defined
This allows packagers to set a custom path for sed (gsed may be simply
called `gsed' or `gnu-sed' or ...)
2021-11-24 11:44:50 +01:00
Omar Polo deead97e23 drop unnecessary ifdef __linux__
since nnn requires gsed anyway, why don't use it?
Probably forgot in #1210
2021-11-24 11:40:59 +01:00
Arun Prakash Jana 8ec2fe7f81
Set Haiku variety to dev 2021-11-23 18:58:43 +05:30
Arun Prakash Jana 65eddfe7b9
Prepare for release v4.4 Tequila 2021-11-23 18:33:45 +05:30
Arun 2f986253e4
Merge pull request #1241 from luukvbaal/master
Guard open_with getreadline for picker
2021-11-23 18:17:13 +05:30
Luuk van Baal 1a6d54515b Guard open_with getreadline with for picker
fix luukvbaal/nnn.nvim#25
2021-11-23 13:11:42 +01:00
Arun 256f0d008f
Merge pull request #1240 from KlzXS/percent_j
Enforce %J only at the end of command
2021-11-16 22:38:32 +05:30
KlzXS ca9b5e04c7
Enforce %J only at the end of command
Also removes double shell
2021-11-16 00:44:44 +01:00
Arun f3df0816d9
Merge pull request #1239 from tonijarjour/patch-1
n/sxiv play gifs automatically from tabbed
2021-11-15 19:06:54 +05:30
Toni Jarjour 8755a3c0cf
n/sxiv play gifs automatically from tabbed 2021-11-14 20:56:32 -05:00
Arun Prakash Jana f66183937d
More frequent interrupt handling during du
The check is done when traversing directories in preorder i.e before the files
inside are enumerated. Postorder traversal is unwinding, so mostly we are done
with the calculation and finishing off the thread.
2021-11-15 01:11:46 +05:30
Arun 6178be7e06
Merge pull request #1235 from luukvbaal/preview-tui
Preview-tui pass pts device in env variable
2021-11-13 01:00:26 +05:30
Luuk van Baal 84bfbcf4e7 Preview-tui pass pts device in env variable 2021-11-12 13:57:27 +01:00
Arun 9cb0a13ffe
Merge pull request #1234 from luukvbaal/preview-tui
Preview-tui ensure pts device for tput in subshell
2021-11-12 07:59:10 +05:30
Luuk van Baal e94f90c89a Preview-tui ensure pts device for tput in subshell 2021-11-11 17:35:10 +01:00
Arun 8b7feff4b6
Merge pull request #1232 from KlzXS/nmv_list_env
Env variable should be not set, not set to 0
2021-11-11 06:06:37 +05:30
Arun bd7f127ad9
Merge pull request #1231 from luukvbaal/preview-tui
Preview-tui workaround for ncurses tput regression
2021-11-11 06:05:35 +05:30
Arun fec0479da3
Merge pull request #1230 from N-R-K/nsxiv_support
add nsxiv support to nuke, preview-tabbed and imgview
2021-11-11 06:00:23 +05:30
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
Luuk van Baal 0d657b47b9 Preview-tui workaround for ncurses tput regression 2021-11-10 19:22:41 +01:00
NRK 39a3cc5309 add nsxiv support to nuke, preview-tabbed and imgview
`nuke` and `preview-tabbed` works as expected. I would assume `imgview`
should work as expected as well since `nsxiv` (at the moment at least)
is a drop-in replacement for sxiv, but I haven't tested it.

Closes: https://github.com/jarun/nnn/issues/1229
2021-11-10 22:46:45 +06:00
Arun c9b9c14481
Merge pull request #1227 from luukvbaal/patches
Fix restorepreview patch conflict
2021-11-09 15:35:01 +00:00
Arun 182ac51b8d
Merge pull request #1226 from luukvbaal/preview-tui
Proper fix for preview-tui zombie-pane
2021-11-09 15:34:28 +00:00
Luuk van Baal 66dfa60465 Fix restorepreview patch conflict 2021-11-09 14:52:45 +01:00
Luuk van Baal 26f380f154 Proper fix for preview-tui zombie-pane 2021-11-09 14:33:52 +01:00
KlzXS 48415c5e1c
Revert "malloc() mem those persist through program runtime"
This reverts commit b84ad2d552.
2021-11-08 15:08:12 +01:00
Arun 1508874b5a
Merge pull request #1224 from KlzXS/nmv_list_current
Updated .nmv to support current when NNN_LIST
2021-11-08 13:34:39 +00:00
Arun e686b94f7e
Merge pull request #1223 from akrifari/fix-invisible-description
Fix invisible description
2021-11-08 13:33:20 +00: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
Krisan Alifari eff4bd6e67 Fix invisible description 2021-11-07 13:00:06 +07:00
Arun f854b3c748
Merge pull request #1220 from luukvbaal/patches
Add nerd icons to gitstatus patch
2021-11-06 06:12:13 +05:30
Luuk van Baal 1621c0303b Add nerd icons to gitstatus patch 2021-11-05 17:01:56 +01:00
Arun Prakash Jana b84ad2d552
malloc() mem those persist through program runtime
At exit, the OS should reclaim all the memory, so no explicit free() required.
2021-11-05 07:59:40 +05:30
Arun Prakash Jana 07a47db8fe
Update ToDO list link 2021-11-04 20:50:32 +05:30
Arun Prakash Jana e2c4445d74
Fix build break 2021-11-03 09:01:26 +05:30
KlzXS eb769c0de5
Resolve symlinks one level for .nmv when in list mode 2021-11-03 08:37:08 +05:30
Terminator X b56e488f1c
Merge pull request #1217 from N-R-K/nuke
nuke: port sxiv-rifle performance improvement over
2021-11-02 10:16:17 +05:30
NRK 5e6c62cd8e nuke: port sxiv-rifle performance improvement over
this commit is mostly porting over some recent performance improvements
from `sxiv-rifle`: https://github.com/ranger/ranger/pull/2411

there's one "bug-fix" in this commit. currently a file named "afilejpeg"
would be matched due to the `-iregex` in listimages. this commit changes
that so only extensions would match, so for example "afile.jpeg" would
match but not "afilejpeg".

As for performance, there's a couple things this commit does:

* store the result of listimages into a tmp file instead of calling that
  function twice, this is probably the biggest performance improvement.
  especially when loading large directories.

* abspath now sets the var abs_target instead of calling printf. since
  abspath is only called from load_dir, we can go one step further and
  inline it. but i haven't done that since the function might be useful
  later on.

* avoid call to dirname and use parameter subsitution instead inside
  `listimages`

* use grep instead of `-iregex`, it's POSIX compliant and can be faster.

i've tested this out with sxiv and everything seems to be working as
expected.
2021-11-02 10:13:45 +06:00