Commit graph

363 commits

Author SHA1 Message Date
Arun Prakash Jana 9a7660fb62
Add Space as 2nd file-path copier key (easy to use) 2018-06-27 20:38:41 +05:30
Arun Prakash Jana 7a1dd541a6
Support multiple scripts 2018-06-17 21:47:19 +05:30
Arun Prakash Jana f19bf5bbad
Use macro instead if hardcoded value 2018-05-19 01:36:17 +05:30
Arun Prakash Jana 8a1786c49f
Fix #108: wrap user and group strings for NULL 2018-05-19 00:46:56 +05:30
Arun Prakash Jana 3625d5adbb
Remove redundant message 2018-05-10 17:23:10 +05:30
Arun Prakash Jana 5902af230d
Fix #106: use stock strlen() & strcmp().
The binary size increases from 49184 to 49216.
2018-05-09 16:57:01 +05:30
Arun Prakash Jana 3b02014897
Support CYGWIN opener 2018-05-07 17:59:31 +05:30
Arun Prakash Jana d6c0e1093a
Prepare for release v1.8 2018-05-02 03:23:38 +05:30
Arun Prakash Jana 65aa62c48e
Merge fs functions 2018-04-26 00:56:45 +05:30
Arun Prakash Jana 02a2551a17
Use static variables for crc8fast 2018-04-26 00:36:51 +05:30
Arun Prakash Jana 3e34272324
Use a smaller buffer 2018-04-26 00:23:31 +05:30
Arun Prakash Jana a6016e8407
Use concise change dir prompt 2018-04-25 23:59:36 +05:30
Arun Prakash Jana 465d619b7f
Show cp file when NNN_NO_X is set 2018-04-25 23:25:40 +05:30
Arun Prakash Jana 6dc4176f57
Retire readinput() 2018-04-25 23:09:00 +05:30
Arun Prakash Jana 4fbb36b66b
Tidy up xreadline() 2018-04-25 22:46:21 +05:30
Arun Prakash Jana 18deea6383
Handle all ^ chars in main loop 2018-04-25 22:46:19 +05:30
Arun Prakash Jana 33cec52d4e
Reload contents on archive create, extract 2018-04-25 22:46:09 +05:30
Arun Prakash Jana c27f58555e
Support archive creation 2018-04-25 05:40:07 +05:30
Arun Prakash Jana 28f303699c
Use simpler descriptions 2018-04-24 08:55:14 +05:30
Arun Prakash Jana c6f9af931f
multi-cp: show number of cherrypicked files 2018-04-22 21:37:45 +05:30
Arun Prakash Jana ebb4725204
Two copy modes are exclusive 2018-04-17 02:22:23 +05:30
Arun Prakash Jana f652a4fecb
Fix calculation of remaining copybuf bytes
Start with PATH_MAX bytes and then double each time.
2018-04-14 20:40:07 +05:30
Arun Prakash Jana 511a1031b5
Suppress copier script trace 2018-04-14 14:47:34 +05:30
Arun Prakash Jana 8e4ebbed4c
Move volume capacity, free up 2018-04-14 10:21:39 +05:30
arcadius3d 46dd9f2c4d Added brackets for tcc compliance (#103) 2018-04-10 06:58:52 +05:30
Arun Prakash Jana 48cf378c7b
Prefer VISUAL, if defined over EDITOR 2018-04-08 06:15:24 +05:30
Jakub Jirutka a85ce3348f Show hidden files by default when env NNN_SHOW_HIDDEN is set (#100) 2018-04-04 06:33:26 +05:30
Arun Prakash Jana f09bd47f26
Update help 2018-04-01 23:39:51 +05:30
Arun Prakash Jana 1653414039
Add more phony targets 2018-04-01 22:51:55 +05:30
Arun Prakash Jana 12ffff243c
Show more useful info in help 2018-04-01 03:43:16 +05:30
Arun Prakash Jana 1ea41f2dd0
Show help on typing ? at empty filter prompt 2018-03-31 21:02:35 +05:30
Arun Prakash Jana 3a515585d1
Support screen locking on Linux 2018-03-30 21:23:28 +05:30
Arun Prakash Jana 1e1708c2ec
New shortcut ^] to spawn shell in current dir 2018-03-30 20:53:25 +05:30
Arun Prakash Jana bfb814bca6
Support ^A, ^E, ^U and ignore ^ chars at rename prompt 2018-03-28 08:08:02 +05:30
Arun Prakash Jana 0e623010e6
Switch to current dir to run editor/vidir 2018-03-19 06:18:25 +05:30
Arun Prakash Jana 8d7a56cbaa
Run a custom script support 2018-03-19 06:17:58 +05:30
Arun Prakash Jana 5624905803
Omit sorting if no matches/entries 2018-03-19 03:54:19 +05:30
Arun Prakash Jana dbf60734ba
Free regex 2018-03-19 03:42:56 +05:30
Arun Prakash Jana 298ce7639e
Retain nav-as-you-type mode after exiting spawned shell 2018-03-16 22:46:03 +05:30
Arun Prakash Jana 70c39a063d Fix #81: GUI programs shouldn't exit on closing the parent terminal
Issue reproduction steps:

1. Spawn a GUI program e.g. open a PDF file in zathura or evince.
2. Without quitting `nnn` close the terminal.
3. Notice that the application quits too.

Can be a nagging issue if someone is not using a drop-down terminal.

Fix: detach a GUI child and start it in a new session.

There are 2 aspects to this commit:

- It fixes #81: in cases where we do not wait for a spawned child we can assume
that the child is a GUI process. We detach and spawn the child in a new session.
- It changes the behaviour to @Rahi374's suggestion in PR #40 i.e. invoke the DE
opener in F_NOWAIT mode.
2018-03-16 04:39:49 +05:30
Arun Prakash Jana 460984c154
Replace all sprintf() with snprintf() 2018-03-09 02:32:22 +05:30
Arun Prakash Jana eddc0c93ba
Fix #95: Add ^I as an alternative to Insert 2018-03-07 18:32:48 +05:30
Arun Prakash Jana 91ef394dbd
Integer calculation-only coolsize() 2018-03-05 18:21:39 +05:30
Arun Prakash Jana 928699d4a4
float is suficient and a _little_ faster in coolsize() 2018-03-05 08:46:34 +05:30
Arun Prakash Jana 4d93a7f9fe Revert "Integer-only coolsize() (#84)"
This reverts commit 7be0726164.
2018-03-05 01:12:10 +05:30
Arun Prakash Jana 58d90bfcf6 Revert "fix rounding carry in coolsize() (#91)"
This reverts commit 7654a2e0c6.
2018-03-05 01:11:29 +05:30
Arun Prakash Jana 90e8b81c3e Revert "Fix compilation warning"
This reverts commit 30fdb6ff11.
2018-03-05 01:11:14 +05:30
Arun Prakash Jana 30fdb6ff11
Fix compilation warning 2018-03-05 00:57:31 +05:30
Alex Suykov 7654a2e0c6 fix rounding carry in coolsize() (#91)
Sizes like 1.999 get rounded to (1 + 100/100), which should be displayed
as 2.00 not 1.100 as simple %i.%02i would do without additional measures.
2018-03-05 00:48:10 +05:30
Arun Prakash Jana 3036b8a733
Fix #89: User-specific tmp file for copying filenames
Use distinct (by username) tmp filename to copy file paths.

The pattern used is:
/tmp/nnncp$USER

If username is 'arun', the file name is `/tmp/nnncparun`.
2018-03-04 10:37:18 +05:30