Commit graph

338 commits

Author SHA1 Message Date
Arun Prakash Jana 70df4fb3c2
Use symbol @/ to denote symbolic link to directory 2018-08-16 20:14:07 +05:30
Arun Prakash Jana f0ca1e7785
Document that filenames are not unquoted 2018-08-16 20:13:31 +05:30
Youssef Hesham 1d6a36ae18 fix invalid command (#113)
* fix invalid command

* adding '-S' argument
2018-08-12 18:06:12 +05:30
Arun Prakash Jana 367e7425c0
Update docs 2018-08-08 05:18:19 +05:30
Arun Prakash Jana bf36462a2b
Implement dir auto-select in nav-as-you-type mode.
If only one entry matches regex filter and it it a directory, cd into it.
2018-08-08 04:57:49 +05:30
Arun Prakash Jana 38a4a2cf8b
Fixed link 2018-08-08 02:02:03 +05:30
Arun Prakash Jana d849779f00
nnn is a file manager now 2018-08-07 04:52:39 +05:30
Arun Prakash Jana 20bb5388e6
Add link to repos 2018-07-18 01:50:22 +05:30
Arun Prakash Jana c19706006d
Reduce indentation level 2018-07-12 19:59:07 +05:30
Arun Prakash Jana ae74c69a34
ToDo list is rolled 2018-07-04 19:39:11 +05:30
Arun Prakash Jana 042d008392
Pass current file name as first argument to custom scripts 2018-07-04 19:35:36 +05:30
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 e2d532416a
Update documentation 2018-06-18 22:54:23 +05:30
Arun Prakash Jana 12c3f5cd12
Bring examples below description 2018-06-17 21:56:06 +05:30
Arun Prakash Jana 7a1dd541a6
Support multiple scripts 2018-06-17 21:47:19 +05:30
Arun Prakash Jana 41532ef002
Example to integrate fzy using custom script 2018-06-17 18:28:47 +05:30
Arun Prakash Jana ff3031ade0
Add LinuxLinks to Mentions section 2018-06-08 22:00:15 +05:30
Arun Prakash Jana 5bff663180
Add OpenBSD as a packager 2018-05-15 06:06:12 +05:30
Arun Prakash Jana f53be3effd
Update instruction 2018-05-02 20:30:18 +05:30
Arun Prakash Jana 19448edfc6
Update help on filter 2018-05-01 10:15:27 +05:30
Arun Prakash Jana 090324b8f1
Update image 2018-04-26 01:30:43 +05:30
Arun Prakash Jana c27f58555e
Support archive creation 2018-04-25 05:40:07 +05:30
Arun Prakash Jana c8a431841c
nnn is always quoted 2018-04-19 06:55:59 +05:30
Arun Prakash Jana 2eee4ad028
Fix #104: document tmux TERM setting 2018-04-19 06:52:41 +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 f2faa2ff12
Update link to ToDo list 2018-04-01 03:50:54 +05:30
Arun Prakash Jana ef689d08b6
Document how to integrate sxiv 2018-03-30 21:52:26 +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 0bb05104b3
Add install commands for listed packagers 2018-03-30 08:42:27 +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 8d7a56cbaa
Run a custom script support 2018-03-19 06:17:58 +05:30
Arun Prakash Jana 7e099c2d53
Update features 2018-03-18 17:01:11 +05:30
Arun Prakash Jana a387682a1b
Add Fedora as a packager 2018-03-18 14:59:42 +05:30
Arun Prakash Jana ca1e2a02d8
Remove reference of NNN_NOWAIT 2018-03-16 04:46:14 +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 f13974ff2c
Add table of external dependencies 2018-03-11 13:42:49 +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 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
Arun Prakash Jana 43134cdfa8
Support ~, - and & keyboard shortcuts at the bookmark prompt.
In nav-as-you-type mode only control keys are understood when filter is enabled.
We need some way to quicly jump HOME, last visited dir or start dir.
2018-03-03 19:19:06 +05:30
Arun Prakash Jana 1ad5a7bd7d
Add openSUSE Leap badge 2018-02-28 16:53:48 +05:30
Arun Prakash Jana b99c036242
openSUSE build system provides several distro packages. thanks @dilawar! 2018-02-28 10:20:29 +05:30
Arun Prakash Jana 045da7a172
Update documentation on vidir 2018-02-27 09:01:39 +05:30
Arun Prakash Jana fa549aa5f7
Update README 2018-02-26 17:50:31 +05:30
Arun Prakash Jana 11dac5e3db
Add shortcut ^G to quit and cd 2018-02-24 22:54:54 +05:30
Arun Prakash Jana ee733a39b1
Support batch file rename in vidir 2018-02-24 19:46:58 +05:30
Arun Prakash Jana 63512152df
Update features 2018-02-24 15:57:07 +05:30
Arun Prakash Jana ba8799e249
Update copyright year 2018-02-24 10:55:35 +05:30
Arun Prakash Jana d0a08ca173
Document file path copy usage sans clipboard 2018-02-24 08:56:44 +05:30
Arun Prakash Jana 04dc774116
Add Gentoo as packager, FreeBSD command 2018-02-24 05:36:25 +05:30
Arun Prakash Jana 6da9d5f499 Support file path quote on copy 2018-01-28 11:34:18 +05:30
Arun Prakash Jana cbfeec5625
keybind to pin current dir - b 2018-01-17 19:32:22 +05:30
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
Arun Prakash Jana f53f1b86e0
Remove shortcut F2 for refresh.
F2 is not very portable e.g., doesn't work over putty (default settings).
2017-08-23 17:36:32 +05:30
Arun Prakash Jana 6c0fe4058c
Update features 2017-08-23 00:56:35 +05:30
Arun Prakash Jana 0b3bec329f
Support in-place file rename 2017-08-23 00:51:59 +05:30
Arun Prakash Jana 1efa17cf23
A compact help format 2017-08-20 23:18:58 +05:30
Arun Prakash Jana 3d89b3f945
Support mark a directory
In certain workflows you know you would have revisit a directory. Mark it!
2017-08-20 16:47:23 +05:30
Arun Prakash Jana dcfc6074c5
Re-order installation section 2017-08-14 06:12:02 +05:30
Arun Prakash Jana 0a552615f8
Add section on packages 2017-08-13 20:20:37 +05:30
Arun Prakash Jana 054f037bd2
Add goodies 2017-07-29 03:40:54 +05:30
Arun Prakash Jana dbafb31dd4
Update readme 2017-07-26 09:34:30 +05:30
Arun Prakash Jana c9c5dfaef7
Remove tab 2017-07-09 07:41:44 +05:30
Arun Prakash Jana a8f7ee9deb
Option -n is redundant 2017-07-06 00:02:09 +05:30
Arun Prakash Jana 3c612fe64d
Update memory usage (latest release) 2017-07-05 08:20:40 +05:30
Arun Prakash Jana 342ecdc3ef
More concise help screen. 2017-07-04 10:01:50 +05:30
Arun Prakash Jana be8e9d5213
Re-format help 2017-07-03 10:24:20 +05:30
Arun Prakash Jana be8e4d8552
Custom color support for directories 2017-07-03 02:26:47 +05:30
Arun Prakash Jana 2b963634bc
Add option -e to use exiftool 2017-07-02 23:57:41 +05:30
Arun Prakash Jana e780360e7d
Show directories in color (default: enabled) 2017-06-30 07:58:18 +05:30
Arun Prakash Jana 04b9e8ec77
Add Debian badge 2017-06-29 18:58:31 +05:30
Arun Prakash Jana 908965b6f5
Support F2 to refresh 2017-06-25 10:07:04 +05:30
Arun Prakash Jana 2a1f99526f
Show current config along with help 2017-06-11 19:24:02 +05:30
Arun Prakash Jana 8c6ab7df02
Support bookmarks 2017-06-11 10:12:32 +05:30
Arun Prakash Jana e495886b59
Suppress output when spawning DE file manager 2017-06-07 20:05:31 +05:30
Arun Prakash Jana a9a8b30bdf
When filter is empty, open file on Enter 2017-06-07 03:04:47 +05:30
Arun Prakash Jana 6a9640afdf
Exit once an app is found. Help, doc updates. 2017-06-06 23:32:40 +05:30
Arun Prakash Jana 889500b057
Set detail view mode as default, introduce light mode 2017-06-06 21:01:28 +05:30
Arun Prakash Jana e8942707cd
We copy the absolute file path 2017-06-06 20:24:04 +05:30
Arun Prakash Jana da9499b138
Optionally use EDITOR (fallback vi) for text files 2017-06-06 20:16:32 +05:30
Arun Prakash Jana fe775ccf1f
desktop opener - xdg-open on Linux and open(1) on OS X 2017-06-06 02:13:58 +05:30
Arun Prakash Jana 94ed36b498
nlay - support multiple apps 2017-06-05 21:06:52 +05:30
Arun Prakash Jana b0efe4c642
Disable key to run top 2017-06-05 03:39:30 +05:30
Arun Prakash Jana 8d6ceb00a7
Use vlock as locker, add ^Q to quit
^Q would quit even from filter mode
2017-06-05 03:39:23 +05:30
Arun Prakash Jana 9b6446a0be
Update documentation 2017-06-04 23:15:08 +05:30
Arun Prakash Jana ac717a7531
Bind ^L to clear prompt 2017-06-04 22:05:23 +05:30
Arun Prakash Jana 9457558d1b
Update docs on navigate-as-you-type mode 2017-06-04 12:39:56 +05:30
Arun Prakash Jana c42df81ae5
Insert key for navigate-as-you-type mode 2017-06-04 11:51:45 +05:30
Arun Prakash Jana 88e9df01a4
Navigate-as-you-type support
1. Open directories in filter mode
2. Fix arrow keys not working after filter selection (due to invalid cur entry)
3. Support `Insert` key to clear filter prompt
4. Update documentation
2017-06-04 05:06:56 +05:30
Arun Prakash Jana a2e7e94064
Update HowTo on file copy, move, delete
Add Debian and Fedora package installation option.
2017-06-03 16:28:18 +05:30
Arun Prakash Jana 16ec5d3351
Use gnome-search-tool as default search utility
Reasons:

gnome-search-tool is much more powerful than other tools in its category. It
supports numerous search parameters like size, modification date and supports
text search.
2017-05-23 18:57:19 +05:30
Arun Prakash Jana e63dc3457d
Update features 2017-05-22 20:11:13 +05:30
Arun Prakash Jana 1e1518c147
Remove redundant variable 2017-05-22 19:27:33 +05:30
Arun Prakash Jana e671dcd092
Update help 2017-05-15 22:51:32 +05:30
Arun Prakash Jana 02ddcb36bd
Update features 2017-05-15 22:29:40 +05:30
Arun Prakash Jana 71bc3c7432
Fix #27: use catfish as default search utility 2017-05-15 20:14:13 +05:30
Arun Prakash Jana ba49beac79
Get rid of unsafe system(3) calls 2017-05-15 18:23:07 +05:30
Arun Prakash Jana e4f72170d0
Fix #26: Provide an option to use a custom nlay file. 2017-05-14 21:00:46 +05:30
Arun Prakash Jana 3f1df2b584
Update performance matrix (more files) 2017-05-14 01:29:37 +05:30