Commit graph

3535 commits

Author SHA1 Message Date
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
Arun Prakash Jana 4bf17cb7bc
Switches to toggle detail view, file size sort
1. The detailed view shows file type and size using keybind 'd'. Disabled by default.
2. Option 's' sorts dir entries by descending order of size.
2017-03-30 01:51:52 +05:30
Arun Prakash Jana c64327b4a6 Re-scan directory contents after spawning a shell
The contents of the directory may be changed from the shell by adding or deleting content. Permissions may have changed too. We must re-populate the contents of the current directory.
2017-03-29 21:43:39 +05:30
Arun Prakash Jana 56dca997b9
Various optimizations 2017-03-29 19:42:23 +05:30
Arun Prakash Jana ad0fb1df8c
Implement navigation roll over 2017-03-29 15:59:56 +05:30
Arun Prakash Jana e67e78f9f1 Update readme 2017-03-29 12:59:23 +05:30
Arun Prakash Jana 596da965cf Merge remote-tracking branch 'upstream/master' 2016-10-05 20:41:32 +05:30
sin e56e7d912b Bump to 0.6 2016-08-24 10:47:25 +01:00
sin 45e6fafc47 Split out default filter initialization 2016-08-22 14:10:14 +01:00
sin dd29e81df5 Make toggle dot behaviour persistent
Once set, the default filter is updated.  This means that
toggle dot will also work as expected when noice is executed
as root.

Based on discussion with Ypnose.
2016-08-22 14:07:07 +01:00
sin bd79c29d8b Align fields in config.def.h
Diff by Ypnose
2016-08-22 11:23:47 +01:00
sin 2bed0dd175 Accept user-defined LDFLAGS in Makefile
Diff by Ypnose
2016-08-22 11:22:24 +01:00
Arun Prakash Jana d6890bfde5 Update README.md 2016-08-21 21:44:56 +05:30
Arun Prakash Jana a34fe7061c Update README.md 2016-08-21 21:40:34 +05:30
Arun Prakash Jana 115d8f6426 Update README.md 2016-08-21 21:17:43 +05:30
Arun Prakash Jana b04accc47c Update README.md 2016-08-21 21:17:23 +05:30
Arun Prakash Jana 21a93a294f Update README.md 2016-08-21 20:21:20 +05:30
Arun Prakash Jana 54d1f68091 Update README.md 2016-08-21 18:42:22 +05:30
Arun Prakash Jana 1068108cac
Update readme. 2016-08-21 18:19:57 +05:30