aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2020-06-24Fix check when char is unsigned (#665)Gravatar Sijmen J. Mulder
If char is unsigned (as on ARM) subtracting a larger number would result in a wrap around, not a negative value. src/nnn.c: In function 'readpipe': src/nnn.c:4325:11: warning: comparison is always false due to limited range of data type [-Wtype-limits] if (ctx < 0 || ctx > CTX_MAX) ^
2020-06-24Always use builtin alloca() (#666)Gravatar Sijmen J. Mulder
Fixes the build on NetBSD 9 on arm64. GCC expands alloca() to __builtin_alloca() but only in nonstandard mode, e.g. when -std=... is not supplied. In standards mode (with -std=...) alloca() is left undefined by GCC. The C library may define it but it also may not, as on NetBSD on arm64: $ uname -srp NetBSD 9.0 aarch64 $ cat alloca.c #include <stdlib.h> int main() { char *p = alloca(10); } $ gcc alloca.c $ gcc -std=c99 alloca.c alloca.c:(.text+0xc): warning: Warning: reference to the libc supplied alloca(3); this most likely will not work. Please use the compiler provided version of alloca(3), by supplying the appropriate compiler flags (e.g. not -std=c89). ld: alloca.c:(.text+0xc): undefined reference to `alloca' The fix is to either not use standards mode (undesirable) or to explicitly use the builtin, which is what this patch does. This is also sufficient for Solarius/Illumos so that check and include are removed.
2020-06-22Add -Wshadow to CFLAGS and fixesGravatar Arun Prakash Jana
2020-06-19Avoid SIGWINCH interruptions of NNN_PIPE IO (#659)Gravatar lvgx
Fixes #656
2020-06-15Option -u to disable current/selection promptGravatar Arun Prakash Jana
2020-06-15Clear selection after some operations (see notes)Gravatar Arun Prakash Jana
Selection is cleared after successful: - file removal - batch rename - link creation However, selection is not cleared after: - archive creation: user may want to delete the files after archiving
2020-06-14Show '+' in statusbar instead of 's' for selectionGravatar Arun Prakash Jana
2020-06-14Refactor key-val pair parsingGravatar Arun Prakash Jana
2020-06-14Make once-used function inlineGravatar Arun Prakash Jana
2020-06-11Feature #534: Support hardware cursor syncGravatar Ian R
2020-06-09Selection mode don't need to be persistentGravatar Arun Prakash Jana
2020-06-09Plugin run flags don't need to be persistentGravatar Arun Prakash Jana
2020-06-09Picker mode doesn't need to be persistentGravatar Arun Prakash Jana
2020-06-09Retain order on session loadGravatar Arun Prakash Jana
2020-06-08Simplify subdir creationGravatar Arun Prakash Jana
2020-06-08Derive session and mount paths, shorten pathsGravatar Arun Prakash Jana
2020-06-08Subdir 'mounts' for remote/archive mountsGravatar Arun Prakash Jana
2020-06-07Fix #639: store NNNLVL in tmp varGravatar Arun Prakash Jana
2020-06-06Fix #637: remove mount dir after unmountGravatar Arun Prakash Jana
2020-06-03Add new ToDo listGravatar Arun Prakash Jana
2020-06-03Esc to send hovered path to FIFOGravatar Arun Prakash Jana
2020-06-03Force notify on left click (right selects & updates)Gravatar Arun Prakash Jana
2020-06-02Key | to send file path to FIFOGravatar Arun Prakash Jana
2020-06-02Refresh hovered for preview on mouse clickGravatar Arun Prakash Jana
2020-06-01Fix #624: wait for user input if cmd failsGravatar Arun Prakash Jana
2020-06-01Wrap FILE_MIME_OPTS use in check (#622)Gravatar Sijmen J. Mulder
We leave it undefined on Solaris/Illumos because no such options exist, so only use it if we have it.
2020-05-31Remove redundant key F5Gravatar Arun Prakash Jana
2020-05-31Do not auto-revive filter in nav-to-type modeGravatar Arun Prakash Jana
2020-05-31Simplify get_input()Gravatar Arun Prakash Jana
2020-05-31Set the corrent keybind for pluginGravatar Arun Prakash Jana
2020-05-30F5 to redraw (even with filter)Gravatar Arun Prakash Jana
2020-05-30Retire ^S as select pluginGravatar Arun Prakash Jana
2020-05-30Remove NNN_PIPE on exitGravatar Arun Prakash Jana
2020-05-30Support make option O_CTX8 for 8 contextsGravatar Arun Prakash Jana
Note that this is not compatible with 4 contexts.
2020-05-30Use bitfields for runtime transient statesGravatar Arun Prakash Jana
2020-05-30Handle number of contexts in a generic fashionGravatar Arun Prakash Jana
This supports using a power of 2 number of contexts like 2, 4 or 8. Note that the number of contexts are not backward compatible. So if user is having 8 contexts and plans to use 4, his sessions with > 1 contexts open may break. We can have a make option to enable 8 contexts. 4 remains default.
2020-05-30Revert "Alt+Enter: clear filter and exit filter prompt"Gravatar Arun Prakash Jana
This reverts commit 2232772db4f00eb936ee66e57d35dd8bc5344d86.
2020-05-30Merge pull request #607 from leovilok/signalsGravatar Mischievous Meerkat
Cleanly handle SIGTERM and SIGHUP
2020-05-30Fix detecting end of evironment options (#610)Gravatar lvgx
This allow using both NNN_OPTS and options with arguments from argv.
2020-05-29Use sigaction() instead of signal()Gravatar Léo Villeveygoux
2020-05-29Cleanly handle SIGTERM and SIGHUPGravatar Léo Villeveygoux
2020-05-29Alt+Enter: clear filter and exit filter promptGravatar Arun Prakash Jana
2020-05-29Remove F5 for toggle hidden (misfit)Gravatar Arun Prakash Jana
2020-05-29Set Escape delay to 0Gravatar Arun Prakash Jana
2020-05-29Alt+Esc to clear filter and exit filter promptGravatar Arun Prakash Jana
It's a little annoying that one has to press ^L followed by Esc to go back to the normal view. We cannot reload the directory on Esc because that will break the filter filtered view feature. So we take this route.
2020-05-26Prepare for release v3.2Gravatar Arun Prakash Jana
2020-05-24Fix build breakGravatar Arun Prakash Jana
2020-05-24Select file if file path is passedGravatar Arun Prakash Jana
2020-05-24Fix filterfn not in sync with cfg.regexGravatar Arun Prakash Jana
2020-05-23Add -a option to generate a temporary NNN_FIFO (#588)Gravatar lvgx
* Add -a option to generate a temporary NNN_FIFO * Add documentation for -a option * plugins/README.md: promote the use of -a This obsoletes the global FIFO unlink trick, so I remove mentions of it. @jarun update: Polish -a