Commit graph

423 commits

Author SHA1 Message Date
Arun Prakash Jana c0b9703831
Fix #147: support one argument to editor 2018-11-28 03:45:57 +05:30
Arun Prakash Jana 28eb6a6312
Use keybind ^T to go to next context 2018-11-27 18:37:31 +05:30
Arun Prakash Jana 338b3be707
Remove file path quoting 2018-11-27 18:29:46 +05:30
Arun Prakash Jana 06ff738b4c
Use ^B to go to next context 2018-11-27 04:01:51 +05:30
Arun Prakash Jana 7db777756f
Option to disable file open on Right and l 2018-11-27 02:06:57 +05:30
Arun Prakash Jana afd8b64d56
Update docs 2018-11-25 01:45:00 +05:30
Arun Prakash Jana 0abe07f9bd
vim plugin has a new project page 2018-11-24 21:11:26 +05:30
Arun Prakash Jana f1a9d15756
Update docs 2018-11-24 11:09:13 +05:30
Arun Prakash Jana 25a307f75e
Update ToDo list # 2018-11-24 08:19:55 +05:30
Arun Prakash Jana 4dc6cb83ff
Update docs 2018-11-24 01:10:44 +05:30
Arun Prakash Jana cc5e49a9a9
Fix #133: Add nnn-picker.vim plugin 2018-11-24 01:03:45 +05:30
Arun Prakash Jana 9e974be3dd
Add option -p for file picker 2018-11-23 22:41:47 +05:30
Arun Prakash Jana f71dc87e0c
Prepare for release v2.1 2018-11-23 16:36:39 +05:30
Arun Prakash Jana 7288f6a713
Update help screen 2018-11-23 10:44:39 +05:30
Arun Prakash Jana 2939cb0a8d
Fix keybind in doc 2018-11-23 10:30:49 +05:30
Arun Prakash Jana 82fbf19803
Add Y as selection keybind 2018-11-23 07:44:32 +05:30
Tim Chase 458f12a979
Annotate ^Y/DSUSP issue on BSDs caused by stty
On at least FreeBSD & OpenBSD, typing `^Y` will send a `DSUSP` signal, suspending the process. Annotate the issue along with a solution to allow `^Y` to work on these.

There may be similar issues on NetBSD or possibly on OSX, but I don't have either available for testing.
2018-11-22 14:08:50 -06:00
Arun Prakash Jana 48c14230a6
Add file to the list of deps 2018-11-22 03:13:55 +05:30
Arun Prakash Jana 8ae2eed0f3
Update docs on file path copy 2018-11-20 19:06:19 +05:30
Arun Prakash Jana 80371258a1
Switch X and ^X key functionality 2018-11-17 08:31:47 +05:30
Arun Prakash Jana 229b1eba91
Use ^W to visit pinned directory.
Turns out ^B is also intercepted by Windows.
2018-11-15 19:04:14 +05:30
Arun Prakash Jana ff0999b801
Change visit pinned dir key to ^B.
^V does not work while working on Windows. It is intercepted as paste.
2018-11-14 20:08:30 +05:30
Arun Prakash Jana ce0a9a6ab3
Update docs 2018-11-13 18:40:48 +05:30
Arun Prakash Jana 5c7eb3ba5b
Update features 2018-11-13 09:29:13 +05:30
Arun Prakash Jana 784ed6fefe
Use the term Leader key 2018-11-12 03:37:17 +05:30
Arun Prakash Jana 81380ff8d4
Use ^B as the Leader key 2018-11-12 03:08:16 +05:30
Arun Prakash Jana 642af4667c
Update docs 2018-11-11 23:25:57 +05:30
Arun Prakash Jana ede3e0830e
Reformat program help 2018-11-11 22:17:15 +05:30
Arun Prakash Jana c5c0b7eaee
Key prompt is case-sensitive 2018-11-11 12:42:22 +05:30
Arun Prakash Jana be8a815463
Update docs 2018-11-11 10:47:24 +05:30
Arun Prakash Jana f41ed544d5
Document native cp, mv, rm 2018-11-11 05:51:05 +05:30
Arun Prakash Jana 4407f29dd3
Support file cp, mv, rm through selection 2018-11-11 05:00:37 +05:30
Arun Prakash Jana 598bf63686
List copy buffer if valid 2018-11-11 05:00:32 +05:30
Arun Prakash Jana 0f7cdfb3b2
Update docs 2018-11-10 13:56:14 +05:30
Arun Prakash Jana 497911e999
Retire nlay 2018-11-10 12:06:21 +05:30
Arun Prakash Jana a095ff485d
Update docs 2018-11-10 06:07:31 +05:30
Arun Prakash Jana da661987aa
key 'q' at key prompt quits context 2018-11-09 09:54:03 +05:30
Arun Prakash Jana e8eeff9b3d
Introduce key prompt 2018-11-09 04:30:12 +05:30
Arun Prakash Jana 70f561dd71
Support >/. and </, at bookmark prompt to cycle active contexts 2018-11-09 03:11:57 +05:30
Arun Prakash Jana 30dc2baa3b
Update docs 2018-11-09 02:00:28 +05:30
Arun Prakash Jana 0a1e54b78b
Smarter bookmark navigation when all keys are single char 2018-11-09 01:32:12 +05:30
Arun Prakash Jana 8a9319fb79
Support key q for context quit 2018-11-08 20:18:43 +05:30
Arun Prakash Jana fe9e8a62bf
Update docs on contexts 2018-11-08 18:29:38 +05:30
Arun Prakash Jana 2b397c430a
Fix #125 2018-11-08 18:12:55 +05:30
Arun Prakash Jana 729c13b162
Support up to 2 args for launcher 2018-11-08 11:06:57 +05:30
Arun Prakash Jana 99a9d63ee7
GUI app launcher mode with 'o'.
Removed file manager and desktop search keys.
Both can be launched with launcher key.
2018-11-08 07:06:09 +05:30
Arun Prakash Jana 23acdebf44
Update docs 2018-11-08 05:23:25 +05:30
Arun Prakash Jana c174e32c06
Retire NNN_NO_X and make the behaviour default 2018-11-08 05:14:03 +05:30
Arun Prakash Jana 7740f2bd33
Remove Coverity badge for now 2018-11-07 22:41:52 +05:30
Arun Prakash Jana 3cf81482a4
Retire chdir prompt 2018-11-06 20:46:45 +05:30
Arun Prakash Jana adbc7ad090
Point build status badge to master 2018-11-03 12:12:19 +05:30
Arun Prakash Jana d3aa855ad8
Add Coverity badge 2018-11-03 11:40:35 +05:30
Arun Prakash Jana 503b9b8962
nnn is now on official Arch Linux repo 2018-11-03 11:33:45 +05:30
Arun Prakash Jana b12a27fc83
Update docs 2018-10-31 05:44:35 +05:30
Arun Prakash Jana c820e0c9f9
Use ^L to clear filter prompt 2018-10-28 01:52:07 +05:30
Arun Prakash Jana 80e5cdfe8d
Add Raspbian Testing as packager 2018-10-28 00:44:19 +05:30
Arun Prakash Jana c5a841f507
Exit prompt on Escape press 2018-10-27 08:35:05 +05:30
Arun Prakash Jana d14912dff6
Update docs 2018-10-26 19:18:14 +05:30
Arun Prakash Jana 6765f95686
Update docs 2018-10-23 02:44:03 +05:30
Arun Prakash Jana 4dadc21ac5
Update docs on cp, mv, rm 2018-10-22 22:36:04 +05:30
Arun Prakash Jana 8090c0d6b4
Rearrange help 2018-10-22 20:41:40 +05:30
Arun Prakash Jana 1562939325
Support copy buffer listing in multi-copy mode 2018-10-22 19:33:27 +05:30
Arun Prakash Jana 51c51cb053
Update docs 2018-10-22 09:12:00 +05:30
Arun Prakash Jana e454078571
Option to disable dir auto-select 2018-10-21 23:30:46 +05:30
Arun Prakash Jana 7c9068627c
Try multiple paths for nnncp (without X case) 2018-10-21 14:51:50 +05:30
Arun Prakash Jana 7aa4a0a3db
update docs 2018-10-21 12:49:36 +05:30
Arun Prakash Jana f6f003969f
Update docs 2018-10-19 22:00:36 +05:30
Arun Prakash Jana 622fcdf9e7
Update memory usage data 2018-10-19 10:51:16 +05:30
Arun Prakash Jana d27b4dbef7
Update help screen 2018-10-18 23:31:24 +05:30
Arun Prakash Jana 4a5ec91fce
Update help 2018-10-18 23:07:18 +05:30
Arun Prakash Jana 5a3a27933c
Update quickstart steps 2018-10-17 21:57:04 +05:30
Arun Prakash Jana f089a06a20
Update docs 2018-10-05 07:45:44 +05:30
Arun Prakash Jana b7a6b1c12a
Show apparent size 2018-10-05 00:26:31 +05:30
Arun Prakash Jana 6cf3c86a20
Update docs 2018-09-06 21:18:32 +05:30
Arun Prakash Jana 776c94a744
Integrate bashlock and lock 2018-09-06 19:51:30 +05:30
Arun Prakash Jana 028e04abd3
Create copy file in home dir, remove copy file on exit 2018-09-06 06:33:50 +05:30
Arun Prakash Jana 18ea909a12
patool - update docs 2018-09-06 04:21:35 +05:30
Arun Prakash Jana 655461a3f2
Add wrapper script for patool integration 2018-09-06 04:12:42 +05:30
Arun Prakash Jana 2beea9bce8
With current features, DE file manager is redundant 2018-08-29 05:31:44 +05:30
Arun Prakash Jana e3a70a2483
Document Cygwin opener 2018-08-28 20:47:37 +05:30
Arun Prakash Jana 424abe15ca
Document dual-pane or multi-pane mode 2018-08-18 13:02:54 +05:30
Arun Prakash Jana 6b66eb487f
Update mentions 2018-08-18 12:34:25 +05:30
Arun Prakash Jana 8b8e644cf5
Remove readline dep and use native prompt
- `nnn` is all about navigational convenience so the user doesn't have to type
- the binary size increases due to readline linkage
- alternative workflow: ^G, cd, `nnn`
- readline required using the prompt and the history would stay after quit
2018-08-16 22:54:49 +05:30
Arun Prakash Jana 9d3f75f63b
Update program help 2018-08-16 20:36:07 +05:30
Arun Prakash Jana 6987b3c4bc
Centred column 2018-08-16 20:17:57 +05:30
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