Commit graph

2703 commits

Author SHA1 Message Date
Arun Prakash Jana 5aa4c799c0
Remove redundant search when entering directory 2017-04-08 11:14:51 +05:30
Arun Prakash Jana 1293b28f2d
Add notes on fallback opener 2017-04-07 17:42:02 +05:30
Arun Prakash Jana e5b9a11584
Show marker only when spawning a shell. 2017-04-06 09:57:32 +05:30
Arun Prakash Jana 579316b5c0
Brand new video. Thanks @zmwangx! 2017-04-06 07:12:16 +05:30
Arun Prakash Jana 205dd6db05
Try fallbak for missing apps, use popen wrapper 2017-04-06 06:29:18 +05:30
Arun Prakash Jana b7e4968a48
Resolve ~ (HOME) at chdir prompt 2017-04-06 06:29:13 +05:30
Arun Prakash Jana 2e3502ea4b
Show notifier only for associations 2017-04-06 06:29:00 +05:30
Arun Prakash Jana cb1a1112a8
Disable checksum calculation
Calculation can take very long. Most Unix-ish OSes have utilities to do this.
2017-04-04 10:34:18 +05:30
Arun Prakash Jana 07c59cfd62
vim-ish binding for jump to first and last entry
It was troubling me. Mimicking 'gg' would have been hacky and would need
additional processing... 'g' was free. Who cares even if you press twice? ;)
2017-04-04 09:46:52 +05:30
Arun Prakash Jana aebe6c1898
Fix warnings. Harden compilation. 2017-04-04 07:20:38 +05:30
Arun Prakash Jana 8fbd97a1ea Merge pull request #3 from zmwangx/travis
Test on Travis
2017-04-04 01:05:35 +05:30
Zhiming Wang 1c0c6de635
Add .travis.yml 2017-04-03 15:15:37 -04:00
Arun Prakash Jana 10a18bf07e
ASCII Art to indicate nnn launched program 2017-04-04 00:37:44 +05:30
Zhiming Wang e758ff78e5
Allow custom CFLAGS and CPPFLAGS in Makefile
This is consistent with the fact that custom LDFLAGS are already allowed, and
for once, it makes warning options easier to control.

Also use automatic variables $@ and $^ consistently.
2017-04-03 14:50:21 -04:00
Arun Prakash Jana 754ea4d3ef
Update static associations 2017-04-03 23:45:53 +05:30
Arun Prakash Jana 30c8828e42
Use double quotes to handle file names with spaces
Remove dependency on cut.
2017-04-03 23:33:31 +05:30
Arun Prakash Jana 4b66029762
Add help screen on keybinds 2017-04-03 22:33:46 +05:30
Arun Prakash Jana 418c9f2654
Show stat, file, md5, sh256 in file details
This commit adds dependencies on file, openssl and cut binaries.
2017-04-03 20:32:09 +05:30
Arun Prakash Jana f466ba543c
Show file details
We closely follow the output for stat(1).
2017-04-03 05:05:14 +05:30
Arun Prakash Jana 87e0891b8d
Remove redundant stuff
1. Have a faster copy of strlcpy()
2. Remove redundant legacy files
3. Fix an issue with NULL check on array name
2017-04-02 21:45:10 +05:30
Arun Prakash Jana 4bc2ce0fbc
Optimize directory search 2017-04-02 14:33:36 +05:30
Arun Prakash Jana 691291245a
Use standard function for numeric sort
Numeric is numeric i.e., n, -n. +n.
Other forms such as --n, ++n, -c, +c should not be considered numeric.

If size is same (e.g. dirs), use alphanum sort.
2017-04-02 12:13:40 +05:30
Arun Prakash Jana 90e98b832b
Revert non-portable optimization 2017-04-02 08:23:13 +05:30
Arun Prakash Jana fb5963facc Merge pull request #2 from zmwangx/gitignore
Add .gitignore to ignore compilation products
2017-04-02 07:45:26 +05:30
Zhiming Wang cd683bde41
Add .gitignore to ignore compilation products 2017-04-01 17:42:49 -04:00
Arun Prakash Jana 0aa1d43428
Show message when trying to go above / 2017-04-02 02:50:56 +05:30
Arun Prakash Jana 951d323616
Show directories first 2017-04-02 01:48:33 +05:30
Arun Prakash Jana 0e82544199
Support sort by numeric value for numeric names 2017-04-02 01:21:31 +05:30
Arun Prakash Jana 6e7aaa18fb
Show sort order if applied 2017-04-01 21:03:58 +05:30
Arun Prakash Jana 8f18c4049c
An optimized dirname() 2017-04-01 17:32:58 +05:30
Arun Prakash Jana 7be7a6d215
Optimizations 2017-04-01 14:41:07 +05:30
Arun Prakash Jana f3d95b6d0d
Show indicators in column 2017-04-01 13:05:20 +05:30
Arun Prakash Jana 54a307767c
Support opening in detail view mode 2017-04-01 10:48:18 +05:30
Arun Prakash Jana 8bbb752a79
Open audio files with mpv 2017-04-01 08:59:00 +05:30
Arun Prakash Jana 584a5f90f3
Remove sh as script opener, use vi 2017-04-01 02:55:00 +05:30
Arun Prakash Jana aeeeed0bce
Change vim to vi 2017-03-31 22:25:56 +05:30
Arun Prakash Jana 8563ec5cb2
Revamp detail mode
If a filename has Unicode chars, the alignment is broken. Hence moving name to
the last column. This also makes the view compact.
Moving block and char dev indicators in the space for size.
2017-03-31 21:30:00 +05:30
Arun Prakash Jana eb12354ce4
Show indicator with filename in bar 2017-03-31 19:32:59 +05:30
Arun Prakash Jana c037f0c55b
Update documentation (man, README) 2017-03-31 10:18:31 +05:30
Arun Prakash Jana 86c3f75512
Fix: can't go to parent if only dir name specified
Invoking nnn with:

nnn dir
nnn ./dir
nnn dir

wouldn't allow user to navigate to parent directory.
2017-03-31 01:34:41 +05:30
Arun Prakash Jana 8775a52779
Rename project to nnn (Noice is Not Noice) 2017-03-30 23:57:38 +05:30
Arun Prakash Jana c42790aa18
Support file name copier
Add keybind 'Ctrl-k' to copy the absolute path of the file under the cursor if environment variable NOICE_COPIER is set.
2017-03-30 23:00:15 +05:30
Arun Prakash Jana 6b169bbd86
Re-format detailed view, show filename 2017-03-30 19:06:06 +05:30
Arun Prakash Jana 055439f23e Use reverse video in detail view
1. Highlight the currently selected item in reverse video.
2. Fix: remember the current item when toggling detail view.
2017-03-30 10:47:06 +05:30
Arun Prakash Jana 187835c2bb
Show modification time in detail view 2017-03-30 10:09:21 +05:30
Arun Prakash Jana 3c94193992
Show number of entries in detailed view 2017-03-30 02:45:46 +05:30
Arun Prakash Jana c78e3bf14f
strip binary 2017-03-30 02:29:28 +05:30
Arun Prakash Jana 98e3f22cb4
Simpler regular listing 2017-03-30 02:25:51 +05:30
Arun Prakash Jana 5c7aaa6d0d
Shows 'Cannot resolve path' on narrow terminal
noice truncates the cwd string dynamically. If the numbers of columns is lesser than the length of the path, cwd is truncated so that the correct path cannot be resolved. We should try to resolve the full path instead.
2017-03-30 02:12:44 +05:30
Arun Prakash Jana b5e0023bfc
Concise file type info in detail view
B - Block Device
C - Character Device
D - Directory
E - Executable
F - Fifo
L - Symbolic Link
R - Regular File
S - Socket
2017-03-30 02:07:39 +05:30