Commit graph

4387 commits

Author SHA1 Message Date
Arun 9db87a782c
Merge pull request #1953 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 (#1950) 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 #1948 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 #1946 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
Arun Prakash Jana 614ebe73fa
Fix patch break 2024-10-02 20:07:34 +05:30
Arun Prakash Jana 1a849f1847
Show session name in help 2024-10-02 19:47:55 +05:30
Arun Prakash Jana 00fb7b6f6b
Add option to show (non-aut) current session name while saving 2024-10-02 19:37:38 +05:30
Arun Prakash Jana 0c4a4e2b21
Add support for 16 prompt commands history 2024-09-29 21:06:43 +05:30
Arun Prakash Jana 6b15af2be5
Show F for filter mode when not active 2024-09-24 21:45:17 +05:30
Arun Prakash Jana e7b0974551
Address lint reports 2024-09-24 16:56:11 +05:30
Arun 2bb76a0e38
Merge pull request #1937 from amalgame21/type-to-nav-indicator
Indicate type-to-nav mode with symbol F
2024-09-24 16:49:27 +05:30
amalgame21 c291932d87 indicate type-to-nav mode (with symbol F) after pressing ESC in type-to-nav mode 2024-09-24 17:47:04 +08:00
Arun b9ff745fd2
Merge pull request #1935 from kovmir/fix-terminal-priority
Do not default to `xterm`
2024-09-24 03:49:49 +05:30
Ivan Kovmir 28c85043a0
Do not default to xterm
It makes more sense to default to the terminals people are less likely
to have. If a user has `xterm` installed, then that is, most probably,
because it ships with X11. Whereas if a user has `st` or `alacritty`
instlled, then that is because he/she chose to install it.
2024-09-20 12:18:52 +02:00
Arun 07a972a485
Merge pull request #1930 from danielb2/patch-1
Have NNN_PREVIEWIMGPROG accept a generic command for preview-tui
2024-09-15 22:35:37 +05:30
Luuk van Baal aa04d6370b
change and document variable expansion 2024-09-15 16:04:37 +02:00
Daniel Bretoi 7571d172aa add uberzug back 2024-09-15 11:45:29 +07:00
Daniel Bretoi ef1ef56461 make image preview more generic 2024-09-15 11:43:38 +07:00
Daniel Bretoi d85c23c433
Update preview-tui
make NNN_PREVIEWIMGPROG flexible enough to accept any program. programs like `timg` would also work (my preference), but it seems odd to add every single program out there when it's easy to add new ones by just this one variable
2024-09-12 22:15:18 -07:00
Arun 251843fe65
Merge pull request #1928 from s-hamann/fix-musl-build
Fix implicit function declaration strcasecmp
2024-09-10 22:23:44 +05:30
black 492a04d47d
Fix implicit function declaration strcasecmp
icons-hash.c uses strcasecmp from strings.h, but does not include it.
At least when building against musl with gcc 15, this is a fatal error.
2024-09-09 13:58:55 +02:00
Arun Prakash Jana 14fef0323d
Revert Haiku variety 2024-08-26 18:59:39 +05:30
Arun Prakash Jana bdb1a64303
Prepare for release v5.0 Daiquiri 2024-08-26 18:47:23 +05:30
Arun Prakash Jana 48d986f706
Update copyright year 2024-08-26 18:39:23 +05:30
Arun Prakash Jana b170298371
Use string literal for NUL 2024-08-25 18:37:13 +05:30
Arun Prakash Jana ddbd15f7fd
Update patches 2024-08-25 10:12:52 +05:30
Arun Prakash Jana 7def65fc02
Add option -0 to use null separator for file paths in picker mode 2024-08-25 09:30:59 +05:30
Arun Prakash Jana a2deaf57f3
rm improvements
- show name of the hovered file to be removed
- show number of selected files to be removed
2024-08-14 05:56:12 +05:30
Arun Prakash Jana 0fb4ed5093
rm improvements:
- log removed filename
- cancel on 'n' or 'N'
2024-08-14 05:05:32 +05:30
Sijmen J. Mulder 9b33c49f68
Replace use of dprintf() with fprintf() or write()
This improves compatibility with legacy platforms that don't provide the
function, in particular, Illumos.
2024-08-11 08:30:58 +05:30
Arun 9fc320d56e
Merge pull request #1917 from N-R-K/upload
plugins/upload: remove inactive services
2024-07-27 11:48:04 +05:30
NRK 27e032fc96 plugins/upload: remove inactive services
this removes ix.io and ffsend since they are no longer active.

binary files are uploaded to file.io as before. selections are
now tar-balled and uploaded to file.io.

text files are uploaded to 0x0.st

Closes: https://github.com/jarun/nnn/pull/1900
2024-07-25 21:01:15 +00:00
Arun 86d883eee4
Merge pull request #1898 from a-gruzdev/dirs-context-color-fix
dirs in context color fix
2024-06-23 20:34:01 +05:30
Aleksandr f7cacaee5c dirs in context color fix 2024-06-22 15:30:09 +02:00
Arun 90eb2d32c0
Merge pull request #1891 from N-R-K/zsh-comp
update zsh completion
2024-06-04 02:56:18 +05:30
Arun e0685e98c2
Merge pull request #1890 from BeyondMagic/master
quitcd: fix range limits for new nushell version
2024-06-04 02:55:56 +05:30
João F. (BeyondMagic/koetemagie) 498d617639 quitcd: nushell use regex to remove single quotes 2024-05-27 11:16:36 -03:00
NRK 7bab213772 update zsh completion
add `-F` flag, enhance `-T` flag option description.
2024-05-27 06:59:17 +00:00
João F. (BeyondMagic/koetemagie) 71452faa40 quitcd: fix range limits for new nushell version 2024-05-26 23:05:14 -03:00
Arun Prakash Jana 0f10bd6cdc Update lock threads to latest 2024-05-24 06:32:02 +05:30
Arun e27d059552
Merge pull request #1881 from N-R-K/colemak-collision
fix collision in colemak patch
2024-05-18 05:43:44 +05:30
NRK 4f3662cf88 fix collision in colemak patch
Closes: https://github.com/jarun/nnn/issues/1876
2024-05-11 11:46:11 +00:00
Arun 9e95578c22
Merge pull request #1879 from N-R-K/use_stdio
use buffered io to reduce syscalls
2024-05-10 17:33:32 +05:30
NRK 78b9677abd use buffered io to reduce syscalls 2024-05-10 08:37:21 +00:00
Arun Prakash Jana 55137600e0
Fix #1877: use dprintf() instead of write() 2024-05-06 19:05:46 +05:30
Arun Prakash Jana be6988d1c8
Fix #1877: malloc: error pointer being freed was not allocated 2024-05-05 18:40:52 +05:30