Commit Graph

184 Commits

Author SHA1 Message Date
Arun Prakash Jana a40d29ba9f
Support multiple file path copy
Design overview:

We are introducing multiple file path copy as a mode which can be toggled using
the keybind `^Y`. `^K` works as the individual entry selector. If the user wants
to select a range, (s)he can press `^Y` on the first entry and `^Y` on the last
entry.

We subscribe to notifications, so we need a fail-proof way to detect changes in
the directory contents. For example, if a file is deleted, it becomes difficult
to get the names of all the files in a range containing that file. If the file
is on a range boundary it would lead to wrong calculations. To handle this the
right way we use CRC8 checksum of all the visible entries in the directory. The
checksum is calculated based on the file information buffer. If the CRC changes
on a redraw(), we reset the multi-select mode.

New line (`\n`) works as the delimiter between file paths. Note that you may have
to disable IFS in the `NNN_COPIER` script to show file paths separated by spaces.
2018-01-14 01:43:30 +05:30
Arun Prakash Jana 4800250814
Key changes: ^F - extract archive, ^X - quit 2018-01-13 09:28:29 +05:30
Arun Prakash Jana 34b650aac8
Remap ^S and ^Q.
The replacement keys are:

^J - toggle du mode
^Y - quit

The change is done because ^S, ^Q keybinds are lost in the following case:
- start nnn
- navigate to a different directory
- spawn a shell
- exit the shell

The issue happens only with the 'special' keybinds like ^S, ^Q, ^Z... which get
their original shell interpretation back.

So we are replacing these 2 keybinds with 2 'non-special' combinations.
2018-01-09 14:21:09 +05:30
Arun Prakash Jana 0a1776e18e
Add shortcut ^S to toggle du mode 2018-01-09 00:31:15 +05:30
Arun Prakash Jana afb6a7ab04
Change bookmark prompt and pin dir keys.
New keys:

- bookmark prompt (^B)
- pin directory (B)

The intention of the change is to facilitate opening the bookmark prompt in
navigate-as-you-type mode. The bookmark prompt is used more than the pin
current directory option.
2018-01-07 09:14:25 +05:30
Arun Prakash Jana 29188ca131
Fix #73: How to discard changes and exit new/rename prompt 2017-12-29 11:19:37 +05:30
Dmitri Goutnik 2c50c92b3d Add FreeBSD as a package source (#72) 2017-12-28 01:18:05 +05:30
Arun Prakash Jana 3e4d944eed
Add openSUSE to packagers 2017-12-26 19:56:19 +05:30
Arun Prakash Jana 8b51a8a054
Update README
Update documentation
2017-12-26 10:33:38 +05:30
Arun Prakash Jana fdc53037f9
Update README 2017-12-26 00:17:10 +05:30
Arun Prakash Jana 7f804ca8f2
Support 'Open with...' 2017-12-25 15:55:53 +05:30
Arun Prakash Jana 8b98df0be1
Update documentation 2017-12-24 18:46:56 +05:30
Arun Prakash Jana d9537e6d49
Add option -b to open bookmark directly 2017-12-24 15:21:38 +05:30
Arun Prakash Jana 4d0bbcb26c
Update README 2017-12-22 01:22:08 +05:30
Arun Prakash Jana 59ae6c9e7f
Replace xstricmp() with strcoll() 2017-12-22 01:19:32 +05:30
Arun Prakash Jana 6f4ab8e3da
Update README, performance numbers 2017-12-21 05:20:59 +05:30
Arun Prakash Jana 8fa747ee00
Link to performance factors 2017-12-19 20:49:54 +05:30
Arun Prakash Jana 683fa65578
Add Slackware as packager 2017-12-16 23:00:23 +05:30
Arun Prakash Jana 1473416228
Update README 2017-12-09 12:07:06 +05:30
Arun Prakash Jana d6b80b380f
switch to formulae.brew.sh for Homebrew link 2017-12-02 22:29:43 +05:30
Vlad Glagolev 9d134a3796 Add Source Mage package 2017-11-25 08:06:05 -05:00
Arun Prakash Jana ac01de1cab
Update package maintainers 2017-11-25 05:20:26 +05:30
Arun Prakash Jana f2c94a5a1c
Change button color 2017-11-17 21:13:40 +05:30
Arun Prakash Jana 56a4241d62
Add Void Linux as a package source 2017-11-06 10:20:23 +05:30
Arun Prakash Jana db6647156b
Update readme 2017-11-04 10:20:39 +05:30
Arun Prakash Jana 35f79b0bfd
Add how-to on hot plugged devices 2017-10-18 06:34:32 +05:30
Arun Prakash Jana 93aac04474
archive listing is done using atool 2017-10-09 02:56:25 +05:30
Vlad Glagolev 0d88940ba5 Add ExifTool URL (#51) 2017-10-08 07:13:18 +05:30
Arun Prakash Jana 0e22a4957f
Update help 2017-10-02 23:03:45 +05:30
Arun Prakash Jana 3e74827cab
Fix alignment in examples 2017-10-02 08:17:41 +05:30
Arun Prakash Jana 79cbc40a7f
Change archive list shortcut to 'F' 2017-10-01 04:28:48 +05:30
Arun Prakash Jana 20e8116a6c
Fix #44: document PAGER usage in certain screens 2017-09-30 05:47:38 +05:30
Arun Prakash Jana 71d27de517
Support archive listing and extraction 2017-09-27 22:14:01 +05:30
Arun Prakash Jana 7a586da34d
Add badge to PPA for Ubuntu variants 2017-09-23 23:02:35 +05:30
Arun Prakash Jana f2e58288e7
nnn is on Ubuntu 17.10 2017-09-23 19:38:56 +05:30
Arun Prakash Jana 54e2bf57f8
Add step to set NNN_NOWAIT in Quickstart 2017-09-20 08:41:15 +05:30
Arun Prakash Jana 55643a5fcc
Update NNN_NOWAIT changes 2017-09-19 19:55:02 +05:30
Paul df4b557ca1 Prevent nnn from waiting on open file process (#40)
* Prevent nnn from waiting on open file process

* Add env var flag to not wait for child process when opening file

* Set nowait flag once to skip bit-or every time we open a file

* Add documentation for NNN_NOWAIT
2017-09-19 12:00:54 +05:30
Arun Prakash Jana a75cf50de5
New video 2017-09-11 02:29:54 +05:30
Arun Prakash Jana 28f69e59fa
Support file and dir create 2017-09-10 13:05:25 +05:30
Arun Prakash Jana 361b59ea97
Change donation button 2017-09-05 02:41:59 +05:30
Arun Prakash Jana d0b184933f
Update README 2017-09-04 10:27:23 +05:30
Arun Prakash Jana 91ab00061c
Prepare for v1.4 release 2017-09-04 10:23:02 +05:30
Arun Prakash Jana a982a195ce
Add pin directory in cool list 2017-09-02 19:34:02 +05:30
Arun Prakash Jana f6cb248975
Re-arrange artifacts 2017-09-02 12:34:29 +05:30
Arun Prakash Jana 564eafbeb3
Add auto-completion scripts 2017-09-02 12:23:19 +05:30
Arun Prakash Jana e2cde6c325
Change name to scripts directory 2017-09-02 11:15:10 +05:30
Arun Prakash Jana e2fae851c3
Use 'pin' dir instead of 'mark' dir 2017-09-01 19:57:36 +05:30
Arun Prakash Jana f94235333a
More concise help 2017-08-25 22:09:03 +05:30
Arun Prakash Jana 776d782fcf
Clear rename prompt with Ctrl-L 2017-08-25 21:49:55 +05:30