1
0
Fork 0
mirror of https://github.com/jarun/nnn.git synced 2025-02-21 08:41:32 +00:00
Commit graph

4429 commits

Author SHA1 Message Date
Arun Prakash Jana
62c84dd254
Merge pull request from N-R-K/ci-fix
fix ci
2025-01-27 22:14:06 +05:30
Arun Prakash Jana
2c7b1a97c0
Merge pull request from psicho2000/master
Allow lowdown to use complete terminal width
2025-01-27 22:13:42 +05:30
NRK
7829527562 fix ci
libreadline doesn't seem to be preinstalled on the new ubuntu
image.

Closes: https://github.com/jarun/nnn/issues/1986
2025-01-27 16:10:09 +00:00
psicho2000
48bc670cac
Allow lowdown to use complete terminal width 2025-01-27 15:52:27 +01:00
Arun Prakash Jana
f0732fef0c Update copyright year 2025-01-12 08:48:00 +05:30
Arun Prakash Jana
c022a02493
Merge pull request from BeyondMagic/master
fix(quitcd.nu): specify signature in/out of command
2025-01-12 08:42:55 +05:30
João F. (BeyondMagic/koetemagie)
c2d21c30fb
fix(quitcd.nu): specify signature in/out of command
Nushell 0.10.1 introduces [stricter command signature parsing](https://www.nushell.sh/blog/2024-12-24-nushell_0_101_0.html#stricter-command-signature-parsing-toc), causing error upon importing this module.
2025-01-11 23:25:18 -03:00
Arun Prakash Jana
fc86399f29
Fix badge 2025-01-11 10:34:32 +05:30
Arun Prakash Jana
1d41fe34f3
Merge pull request from N-R-K/misc-changes
misc changes
2025-01-06 18:51:16 +05:30
Arun Prakash Jana
1cc021e99c
Merge pull request from N-R-K/cppcheck
ci: add cppcheck for static analysis
2025-01-06 18:50:15 +05:30
Arun Prakash Jana
a482becc75
Merge pull request from 0fflineuser/master
Follow symlink in fzplug plugin.
2025-01-06 18:44:25 +05:30
Arun Prakash Jana
e131f5f32b
Merge pull request from doremiyeon/filter_function_restore_on_session_load
filter function restore on session load
2025-01-06 18:42:01 +05:30
NRK
6a9bf206cf don't feed unchecked fd to dup2()
the open() might fail and then dup2 will be called with -1 fd.
clang-tidy complains about this.
just open "/dev/null" once at program startup, check the result,
and then reuse that fd throughout.
2025-01-05 22:27:26 +00:00
NRK
9d33ba1104 icons-hash: table needs to be strictly bigger than icons 2025-01-05 22:27:26 +00:00
NRK
94bac4ef98 shell_escape: return strlen or -1 on failure
also check for `outlen < 3` since the function
unconditionally writes at least 3 bytes.
2025-01-05 22:27:23 +00:00
NRK
371eeb7176 ci: add cppcheck for static analysis 2025-01-05 22:08:34 +00:00
NRK
1cf9654368 remove malloc casting 2025-01-05 20:28:17 +00:00
NRK
a0c06d0843 xstrsncpy: allow 0 len copies to be no-ops 2025-01-05 19:17:18 +00:00
k-pop connoisseur
a9093c6dd1 switch filterfn on ctx changes
this should fix more crashes related to switching between
contexts with different types of filters active. particularly
when switching from a regex filtered context to a string
filtered one.
2025-01-05 18:07:34 +00:00
k-pop connoisseur
18dff24acc on session load, restore correct filter function 2025-01-05 18:07:30 +00:00
0fflineuser
c0457a2492 Follow symlink in fzplug plugin. 2025-01-05 18:52:48 +01:00
Arun Prakash Jana
da73d9ada9
Merge pull request from doremiyeon/xreadline_by_word_movement
xreadline by word movement
2025-01-05 22:15:56 +05:30
Arun Prakash Jana
e59b83d4d9
Merge pull request from N-R-K/custom-trashcmd
add support for custom trash command
2025-01-05 22:11:41 +05:30
NRK
d07dde54ae fix patch 2025-01-05 15:12:26 +00:00
NRK
e787ae4501 add support for custom trash command
this makes it so that if $NNN_TRASH is set to a string other
than "1" or "2" then it is accepted as the trash command to run.

this allows us to support arbritary trashing utilities while
also maintaining backwards compatibility for older "1" & "2"
values.

Fixes: https://github.com/jarun/nnn/issues/1168
Fixes: https://github.com/jarun/nnn/discussions/1963
Fixes: https://github.com/jarun/nnn/discussions/1960
Fixes: https://github.com/jarun/nnn/discussions/1761
2025-01-05 01:10:01 +00:00
Arun Prakash Jana
5522292014
Merge pull request from peter15914/fix-abspath-retval
Check NULL from abspath()
2024-12-19 22:18:04 +05:30
Peter Zmanovsky
a23861332a Check NULL from abspath()
abspath() returns NULL in some cases and its return value is always checked for NULL.
2024-12-19 12:26:32 +05:00
Arun Prakash Jana
ef6e00c85c
Merge pull request from thermosflasche/patch-1
fix: Lock threads
2024-12-19 00:39:16 +05:30
Bruno Tendler
b6abe95870
fix: Lock threads 2024-12-17 16:53:30 -03:00
NRK
942afdf445 make Ctrl+w in xreadline similar to readline's
when there's multiple spaces, the previous logic didn't erase
them, e.g:

    a word   |   < before
    a word  |    < after Ctrl-w

this patch brings the behavior closer to readline's:

    a word   |   < before
    a |          < after Ctrl-w

this also slightly changes the behavior since '/' is no longer
considered a boundary.
2024-12-16 14:46:28 +00:00
k-pop connoisseur
d6b1b80e40 extend xreadline() with some by-word movement
added M-b, M-f, M-d, M-bspc according to GNU readline specifications.
2024-12-16 08:52:18 +00:00
Arun Prakash Jana
f87104dd40
Merge pull request from doremiyeon/us1968_session_restore_fix
fix 's r' session restore 
2024-12-13 21:10:01 +05:30
k-pop connoisseur
395068dac8 fix 's r' session restore 2024-12-13 02:19:21 +01:00
Arun
5e5a17f954
Merge pull request from smithbh/master
Fixes typo in man doc
2024-12-04 03:51:47 +05:30
Brandon Smith
80316c2b8c
Merge branch 'jarun:master' into master 2024-12-03 14:33:58 -06:00
Brandon Smith
0f2a932434
Fixes typo in man doc
- Previous commit accidentally removed the formatting character.

Signed-off-by: Brandon Smith <smithbh@me.com>
2024-12-03 14:29:43 -06:00
Arun
575c8d9065
Merge pull request from wassup05/gpgs-gpgv
adds plugins gpgs and gpgv
2024-12-02 20:40:32 +05:30
Brandon Smith
a5bf6e930a
Fixes minor typo
Signed-off-by: Brandon Smith <smithbh@me.com>
2024-11-30 17:47:40 -06:00
supritsj@Arch
3c43564182 use "xarg -0" instead of trim 2024-11-26 19:29:10 +05:30
supritsj@Arch
1e1abdfb31 added plugins gpgs and gpgv 2024-11-26 15:14:43 +05:30
Arun
3ca56e3430
Merge pull request from roygbyte/doc/du-mode
Use consistent language for disk mode in manual
2024-11-15 10:16:29 +05:30
Scarlett McAllister
2504a04ddd Use consistent language for disk mode in manual 2024-11-14 11:21:13 -04:00
Arun
9db87a782c
Merge pull request from N-R-K/fix-fortify-abortion
fix crash under _FORTIFY_SOURCE
2024-11-12 10:17:12 +05:30
NRK
43c69abbac fix crash under _FORTIFY_SOURCE
when built with _FORTIFY_SOURCE it will check whether the buffer
has as much space as the argument passed to snprintf:

	7b544224f8/debug/snprintf_chk.c (L28-L29)

this results in some false positives when the snprintf provided
len argument is bigger than the buffer size (but the result
would have fit into the buffer anyways).

fix this by passing the proper size to snprintf as argument.
(the +1 len isn't necessary, but add it just in case.)

Fixes: https://github.com/jarun/nnn/issues/1931
2024-11-11 20:07:25 +00:00
Desmond Kabus
d17df60c4a
O_EMOJI: Add more emoji icons () 2024-11-08 15:44:36 +00:00
Arun Prakash Jana
ab375de725
Suffix the current context with * in help 2024-11-05 21:36:54 +05:30
Arun
f762b3dc0c
Merge pull request from babbaj/fix-sigpipe
restore sigpipe handler in plugin child processes
2024-11-05 06:30:54 +05:30
Babbaj
b67c7d71e6
restore sigpipe handler in plugin child processes 2024-11-04 19:04:47 -05:00
Arun
877d7c0687
Merge pull request from N-R-K/lzip
add icon for lzip files
2024-10-24 19:49:48 +05:30
NRK
1876e4cc10 add icon for lzip files 2024-10-24 04:46:28 +00:00