]>
Sergey Matveev's repositories - nnn.git/log
Arun Prakash Jana [Sun, 2 Apr 2017 02:45:07 +0000 (08:15 +0530)]
Revert non-portable optimization
Arun Prakash Jana [Sun, 2 Apr 2017 02:15:26 +0000 (07:45 +0530)]
Merge pull request #2 from zmwangx/gitignore
Add .gitignore to ignore compilation products
Zhiming Wang [Sat, 1 Apr 2017 21:42:49 +0000 (17:42 -0400)]
Add .gitignore to ignore compilation products
Arun Prakash Jana [Sat, 1 Apr 2017 21:20:56 +0000 (02:50 +0530)]
Show message when trying to go above /
Arun Prakash Jana [Sat, 1 Apr 2017 20:18:33 +0000 (01:48 +0530)]
Show directories first
Arun Prakash Jana [Sat, 1 Apr 2017 17:40:12 +0000 (23:10 +0530)]
Support sort by numeric value for numeric names
Arun Prakash Jana [Sat, 1 Apr 2017 12:31:54 +0000 (18:01 +0530)]
Show sort order if applied
Arun Prakash Jana [Sat, 1 Apr 2017 12:02:58 +0000 (17:32 +0530)]
An optimized dirname()
Arun Prakash Jana [Sat, 1 Apr 2017 09:11:07 +0000 (14:41 +0530)]
Optimizations
Arun Prakash Jana [Sat, 1 Apr 2017 07:26:25 +0000 (12:56 +0530)]
Show indicators in column
Arun Prakash Jana [Sat, 1 Apr 2017 05:18:18 +0000 (10:48 +0530)]
Support opening in detail view mode
Arun Prakash Jana [Fri, 31 Mar 2017 22:23:49 +0000 (03:53 +0530)]
Open audio files with mpv
Arun Prakash Jana [Fri, 31 Mar 2017 18:05:48 +0000 (23:35 +0530)]
Remove sh as script opener, use vi
Arun Prakash Jana [Fri, 31 Mar 2017 16:55:56 +0000 (22:25 +0530)]
Change vim to vi
Arun Prakash Jana [Fri, 31 Mar 2017 15:47:50 +0000 (21:17 +0530)]
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.
Arun Prakash Jana [Fri, 31 Mar 2017 14:02:59 +0000 (19:32 +0530)]
Show indicator with filename in bar
Arun Prakash Jana [Fri, 31 Mar 2017 02:52:51 +0000 (08:22 +0530)]
Update documentation (man, README)
Arun Prakash Jana [Thu, 30 Mar 2017 20:04:41 +0000 (01:34 +0530)]
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.
Arun Prakash Jana [Thu, 30 Mar 2017 18:25:30 +0000 (23:55 +0530)]
Rename project to nnn (Noice is Not Noice)
Arun Prakash Jana [Thu, 30 Mar 2017 15:47:00 +0000 (21:17 +0530)]
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.
Arun Prakash Jana [Thu, 30 Mar 2017 13:24:18 +0000 (18:54 +0530)]
Re-format detailed view, show filename
Arun Prakash Jana [Thu, 30 Mar 2017 05:14:26 +0000 (10:44 +0530)]
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.
Arun Prakash Jana [Thu, 30 Mar 2017 04:39:21 +0000 (10:09 +0530)]
Show modification time in detail view
Arun Prakash Jana [Wed, 29 Mar 2017 21:15:46 +0000 (02:45 +0530)]
Show number of entries in detailed view
Arun Prakash Jana [Wed, 29 Mar 2017 20:59:28 +0000 (02:29 +0530)]
strip binary
Arun Prakash Jana [Wed, 29 Mar 2017 20:55:51 +0000 (02:25 +0530)]
Simpler regular listing
Arun Prakash Jana [Wed, 29 Mar 2017 20:42:44 +0000 (02:12 +0530)]
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.
Arun Prakash Jana [Wed, 29 Mar 2017 20:37:39 +0000 (02:07 +0530)]
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
Arun Prakash Jana [Wed, 29 Mar 2017 20:21:52 +0000 (01:51 +0530)]
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.
Arun Prakash Jana [Wed, 29 Mar 2017 14:38:34 +0000 (20:08 +0530)]
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.
Arun Prakash Jana [Wed, 29 Mar 2017 14:12:23 +0000 (19:42 +0530)]
Various optimizations
Arun Prakash Jana [Wed, 29 Mar 2017 10:29:56 +0000 (15:59 +0530)]
Implement navigation roll over
Arun Prakash Jana [Wed, 29 Mar 2017 05:33:22 +0000 (11:03 +0530)]
Update readme
Arun Prakash Jana [Wed, 5 Oct 2016 15:11:32 +0000 (20:41 +0530)]
Merge remote-tracking branch 'upstream/master'
sin [Wed, 24 Aug 2016 09:47:25 +0000 (10:47 +0100)]
Bump to 0.6
sin [Mon, 22 Aug 2016 13:10:14 +0000 (14:10 +0100)]
Split out default filter initialization
sin [Mon, 22 Aug 2016 12:44:52 +0000 (13:44 +0100)]
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.
sin [Mon, 22 Aug 2016 10:23:47 +0000 (11:23 +0100)]
Align fields in config.def.h
Diff by Ypnose
sin [Mon, 22 Aug 2016 10:22:24 +0000 (11:22 +0100)]
Accept user-defined LDFLAGS in Makefile
Diff by Ypnose
Arun Prakash Jana [Sun, 21 Aug 2016 16:14:56 +0000 (21:44 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 16:10:34 +0000 (21:40 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 15:47:43 +0000 (21:17 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 15:47:23 +0000 (21:17 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 14:51:20 +0000 (20:21 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 13:12:22 +0000 (18:42 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 12:49:57 +0000 (18:19 +0530)]
Update readme.
Arun Prakash Jana [Sun, 21 Aug 2016 12:47:34 +0000 (18:17 +0530)]
List alphabetically, case ignored (like 'ls -l').
Arun Prakash Jana [Sun, 21 Aug 2016 12:07:18 +0000 (17:37 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 10:32:03 +0000 (16:02 +0530)]
Document NOICE_FALLBAK_OPENER.
Arun Prakash Jana [Sun, 21 Aug 2016 10:19:54 +0000 (15:49 +0530)]
Support NOICE_FALLBAK_OPENER.
Arun Prakash Jana [Sun, 21 Aug 2016 08:35:26 +0000 (14:05 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 08:28:53 +0000 (13:58 +0530)]
Doc update on NOICE_OPENER.
Arun Prakash Jana [Sun, 21 Aug 2016 08:18:19 +0000 (13:48 +0530)]
Support NOICE_OPENER env variable.
Arun Prakash Jana [Sun, 21 Aug 2016 07:28:38 +0000 (12:58 +0530)]
Update README.md
Arun Prakash Jana [Sun, 21 Aug 2016 07:19:42 +0000 (12:49 +0530)]
Update man page.
Arun Prakash Jana [Sun, 21 Aug 2016 04:41:19 +0000 (10:11 +0530)]
Update README.
Arun Prakash Jana [Sun, 21 Aug 2016 02:55:12 +0000 (08:25 +0530)]
Remove libmagic, use file command.
The magic.mgc file gets created in the local directory, opening
the global file throws unwanted messages. So we are using the o/p
of the file command to determine if the file is a plain text file.
Arun Prakash Jana [Sat, 20 Aug 2016 16:27:14 +0000 (21:57 +0530)]
Update README
Arun Prakash Jana [Sat, 20 Aug 2016 16:13:32 +0000 (21:43 +0530)]
Remove config.h on clean.
Arun Prakash Jana [Sat, 20 Aug 2016 16:09:47 +0000 (21:39 +0530)]
Fix compilation issues with -O3 optimization.
Arun Prakash Jana [Sat, 20 Aug 2016 14:35:35 +0000 (20:05 +0530)]
Modify file type handling.
Use mpv, fmedia, zathura.
Invoke libmagic to identify text files and open with vim.
Use xdg-open for unhandled mimes.
Arun Prakash Jana [Sat, 20 Aug 2016 14:14:31 +0000 (19:44 +0530)]
Merge remote-tracking branch 'upstream/master'
Arun Prakash Jana [Sat, 20 Aug 2016 14:10:14 +0000 (19:40 +0530)]
Initial commit
sin [Fri, 11 Mar 2016 09:59:48 +0000 (09:59 +0000)]
Bump to 0.5
sin [Thu, 10 Mar 2016 17:00:12 +0000 (17:00 +0000)]
Fix initscr() crash on NetBSD
NetBSD has its own curses implementation and initscr() does not
terminate with an error if TERM is not set properly.
Instead check the return value and exit if an initialization
error occurs.
sin [Thu, 25 Feb 2016 15:06:57 +0000 (15:06 +0000)]
Add command to cd back to HOME
Original patch written by Richard Hyde and taken from
https://github.com/RichardHyde/noice
sin [Thu, 25 Feb 2016 14:54:41 +0000 (14:54 +0000)]
Add command to toggle hide .dot files
Patch written by Richard Hyde and taken from
https://github.com/RichardHyde/noice
sin [Fri, 19 Feb 2016 14:03:06 +0000 (14:03 +0000)]
Style fix
sin [Fri, 19 Feb 2016 13:56:42 +0000 (13:56 +0000)]
Fix grammar in manpage
sin [Fri, 19 Feb 2016 13:40:44 +0000 (13:40 +0000)]
Fix strlcpy() size argument
It should be the size of the destination buffer, not the source.
In this case, both src and dest have the same size.
sin [Fri, 19 Feb 2016 13:37:24 +0000 (13:37 +0000)]
Update README - OSX works too
sin [Wed, 10 Feb 2016 15:38:22 +0000 (15:38 +0000)]
Move mkpath() higher up so we don't need to declare it
sin [Wed, 10 Feb 2016 15:32:41 +0000 (15:32 +0000)]
Move path[], oldpath[] and fltr[] inside browse()
sin [Wed, 10 Feb 2016 15:20:28 +0000 (15:20 +0000)]
Minor style fix
sin [Wed, 10 Feb 2016 15:16:19 +0000 (15:16 +0000)]
Rename global `n` to `ndents`
This is more descriptive for a global variable which
can easily be shadowed.
sin [Wed, 10 Feb 2016 15:09:04 +0000 (15:09 +0000)]
Use dents name directly like we do in other places
sin [Mon, 8 Feb 2016 17:25:35 +0000 (17:25 +0000)]
Minor README update
sin [Mon, 8 Feb 2016 17:22:30 +0000 (17:22 +0000)]
Minor style fix
sin [Mon, 8 Feb 2016 17:08:26 +0000 (17:08 +0000)]
Nuke some newlines
sin [Mon, 8 Feb 2016 16:59:19 +0000 (16:59 +0000)]
Remove some const bullshit
sin [Mon, 8 Feb 2016 16:57:56 +0000 (16:57 +0000)]
Remove some more useless memory allocations
sin [Mon, 8 Feb 2016 16:52:07 +0000 (16:52 +0000)]
Remove filter as you type mode
Nobody uses it and adds additional complexity.
sin [Mon, 8 Feb 2016 16:44:39 +0000 (16:44 +0000)]
No need for cast in qsort callback
sin [Tue, 26 Jan 2016 20:07:29 +0000 (20:07 +0000)]
Bump to 0.4
sin [Wed, 13 Jan 2016 18:52:19 +0000 (18:52 +0000)]
Year bump
sin [Thu, 7 Jan 2016 10:26:44 +0000 (10:26 +0000)]
noice: No need to perform so many memory allocations
The code was quite fragile. As a first pass, use buffers of size
PATH_MAX and LINE_MAX accordingly until we simplify the overall logic.
sin [Wed, 6 Jan 2016 15:59:27 +0000 (15:59 +0000)]
Fix memory leak
sin [Wed, 6 Jan 2016 15:55:25 +0000 (15:55 +0000)]
Avoid another allocation
sin [Wed, 6 Jan 2016 15:53:04 +0000 (15:53 +0000)]
Avoid unneeded memory allocation in xdirname()
sin [Wed, 6 Jan 2016 15:24:35 +0000 (15:24 +0000)]
sizeof(char) is always 1, no need to be explicit
sin [Wed, 6 Jan 2016 15:21:41 +0000 (15:21 +0000)]
Print the resolved path for cwd
Avoids weird things like /etc/.. when displaying cwd.
Also no need for cwd to be on the heap.
sin [Thu, 26 Nov 2015 16:05:13 +0000 (16:05 +0000)]
Fix comment
sin [Thu, 26 Nov 2015 16:00:26 +0000 (16:00 +0000)]
Add usage
sin [Thu, 26 Nov 2015 15:54:54 +0000 (15:54 +0000)]
Don't use printerr() before curses has been initialized
sin [Thu, 26 Nov 2015 15:35:53 +0000 (15:35 +0000)]
Don't name vars in prototypes
sin [Thu, 26 Nov 2015 15:33:49 +0000 (15:33 +0000)]
Rename makepath() to mkpath()
sin [Thu, 26 Nov 2015 15:10:12 +0000 (15:10 +0000)]
Only use the environment variable when it is not empty
sin [Thu, 26 Nov 2015 15:05:16 +0000 (15:05 +0000)]
Be consistent in manpage
sin [Thu, 26 Nov 2015 15:03:26 +0000 (15:03 +0000)]
Minor fixes for manpage
sin [Thu, 26 Nov 2015 13:51:09 +0000 (13:51 +0000)]
Fix instructions for Solaris 9