]>
Sergey Matveev's repositories - nnn.git/log
Giacomo Rossetto [Thu, 1 Mar 2018 13:06:26 +0000 (14:06 +0100)]
Improved portability on MacOS (#86)
Alex Suykov [Thu, 1 Mar 2018 07:52:25 +0000 (09:52 +0200)]
Integer-only coolsize() (#84)
Arun Prakash Jana [Wed, 28 Feb 2018 11:09:23 +0000 (16:39 +0530)]
Add openSUSE Leap badge
ilovezfs [Wed, 28 Feb 2018 08:47:35 +0000 (00:47 -0800)]
Makefile: don't use non-portable -t option (#83)
This fixes the build with the BSD install command by eschewing the GNU
specific -t option, which is not portable.
Arun Prakash Jana [Wed, 28 Feb 2018 04:50:11 +0000 (10:20 +0530)]
openSUSE build system provides several distro packages. thanks @dilawar!
Arun Prakash Jana [Tue, 27 Feb 2018 20:44:53 +0000 (02:14 +0530)]
Fix Fedora 25 deps
Arun Prakash Jana [Tue, 27 Feb 2018 20:24:42 +0000 (01:54 +0530)]
Prepare for release v1.7
Arun Prakash Jana [Tue, 27 Feb 2018 03:31:39 +0000 (09:01 +0530)]
Update documentation on vidir
Arun Prakash Jana [Mon, 26 Feb 2018 12:20:31 +0000 (17:50 +0530)]
Update README
Arun Prakash Jana [Sat, 24 Feb 2018 16:13:41 +0000 (21:43 +0530)]
Add shortcut ^G to quit and cd
Arun Prakash Jana [Sat, 24 Feb 2018 15:38:49 +0000 (21:08 +0530)]
Update changelog
Arun Prakash Jana [Sat, 24 Feb 2018 15:15:50 +0000 (20:45 +0530)]
Use macros for external utils
Arun Prakash Jana [Sat, 24 Feb 2018 14:16:58 +0000 (19:46 +0530)]
Support batch file rename in vidir
Arun Prakash Jana [Sat, 24 Feb 2018 09:16:33 +0000 (14:46 +0530)]
Update features
Arun Prakash Jana [Sat, 24 Feb 2018 08:04:46 +0000 (13:34 +0530)]
Update Changelog
Arun Prakash Jana [Sat, 24 Feb 2018 05:33:05 +0000 (11:03 +0530)]
Add packages for CentOS 7.2, Fedora 25 and 27
Arun Prakash Jana [Sat, 24 Feb 2018 05:25:35 +0000 (10:55 +0530)]
Update copyright year
Arun Prakash Jana [Sat, 24 Feb 2018 05:13:06 +0000 (10:43 +0530)]
Enable file extract in nav-as-you-type mode
Arun Prakash Jana [Sat, 24 Feb 2018 03:03:22 +0000 (08:33 +0530)]
Document file path copy usage sans clipboard
Arun Prakash Jana [Sat, 24 Feb 2018 02:19:59 +0000 (07:49 +0530)]
Support file path copy when X is unavailable
Arun Prakash Jana [Fri, 23 Feb 2018 23:49:46 +0000 (05:19 +0530)]
Add Gentoo as packager, FreeBSD command
Arun Prakash Jana [Thu, 15 Feb 2018 13:51:58 +0000 (19:21 +0530)]
Re-populate after spawning shell
Arun Prakash Jana [Tue, 13 Feb 2018 07:58:18 +0000 (13:28 +0530)]
Start dir watch, preserve cur entry when navigate-as-you-type is disabled
Arun Prakash Jana [Sun, 4 Feb 2018 17:24:58 +0000 (22:54 +0530)]
Better message for multi-copy
Arun Prakash Jana [Mon, 29 Jan 2018 15:19:38 +0000 (20:49 +0530)]
Do not show quotes on ^K
Arun Prakash Jana [Sun, 28 Jan 2018 07:14:29 +0000 (12:44 +0530)]
Show copymode on/off
Arun Prakash Jana [Sun, 28 Jan 2018 06:53:23 +0000 (12:23 +0530)]
Interpret ^T in filter mode
Arun Prakash Jana [Sun, 28 Jan 2018 06:34:56 +0000 (12:04 +0530)]
Support file path quote on single copy
Arun Prakash Jana [Sun, 28 Jan 2018 06:03:12 +0000 (11:33 +0530)]
Support file path quote on copy
maxice8 [Mon, 22 Jan 2018 13:09:17 +0000 (11:09 -0200)]
Makefile: use PKG_CONFIG instead of hardcoding pkg-config (#78)
Arun Prakash Jana [Fri, 19 Jan 2018 15:09:23 +0000 (20:39 +0530)]
Use macro for CRC8 table length
Arun Prakash Jana [Wed, 17 Jan 2018 14:52:07 +0000 (20:22 +0530)]
Redraw if no entries when navigate-as-you-type is turned off
The main reason to do this is to start watching the current dir for changes. In
any case, this does not harm; if there are dir entries shown on redraw that's
better than showing nothing.
Arun Prakash Jana [Wed, 17 Jan 2018 14:02:22 +0000 (19:32 +0530)]
keybind to pin current dir - b
Arun Prakash Jana [Sun, 14 Jan 2018 08:35:19 +0000 (14:05 +0530)]
Set to last selection if filter is empty
Arun Prakash Jana [Sun, 14 Jan 2018 07:13:20 +0000 (12:43 +0530)]
Use consistent date format
Arun Prakash Jana [Sun, 14 Jan 2018 06:41:46 +0000 (12:11 +0530)]
Improve common message handling
Arun Prakash Jana [Sun, 14 Jan 2018 04:48:53 +0000 (10:18 +0530)]
Use concise and lowercase messages
Arun Prakash Jana [Sat, 13 Jan 2018 21:57:24 +0000 (03:27 +0530)]
Replace snprintf() with xstrlcpy()
Arun Prakash Jana [Sat, 13 Jan 2018 20:13:30 +0000 (01:43 +0530)]
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.
Arun Prakash Jana [Sat, 13 Jan 2018 03:58:29 +0000 (09:28 +0530)]
Key changes: ^F - extract archive, ^X - quit
Jan Chren [Wed, 10 Jan 2018 16:32:48 +0000 (17:32 +0100)]
make Makefile more packaging friendly (#76)
* make Makefile more packaging friendly
* packagecore: run `strip` before installing
Arun Prakash Jana [Tue, 9 Jan 2018 08:51:09 +0000 (14:21 +0530)]
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.
Arun Prakash Jana [Tue, 9 Jan 2018 08:02:57 +0000 (13:32 +0530)]
Sufficient to use refresh() after exitcurses()
Arun Prakash Jana [Mon, 8 Jan 2018 19:01:15 +0000 (00:31 +0530)]
Add shortcut ^S to toggle du mode
Arun Prakash Jana [Mon, 8 Jan 2018 18:43:11 +0000 (00:13 +0530)]
Explicitly optimize modulo ops
Arun Prakash Jana [Sun, 7 Jan 2018 21:57:41 +0000 (03:27 +0530)]
Open with GUI app - Suppress stdout, stderr
Arun Prakash Jana [Sun, 7 Jan 2018 14:38:59 +0000 (20:08 +0530)]
Simplify detail printing
Arun Prakash Jana [Sun, 7 Jan 2018 03:44:25 +0000 (09:14 +0530)]
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.
Arun Prakash Jana [Sat, 6 Jan 2018 21:57:09 +0000 (03:27 +0530)]
Highest priority to desktop search, rename
Arun Prakash Jana [Sat, 6 Jan 2018 06:28:01 +0000 (11:58 +0530)]
Enable extra shortcuts in navigate-as-you-type mode
Enabled functionality:
- Copy file path (^K)
- Run desktop search utility (^/)
- Rename file (^R)
- Open with... (^O)
- Pin current directory (^B)
- Visit pinned directory (^V)
- Extract archive (^X)
Arun Prakash Jana [Sat, 6 Jan 2018 04:31:54 +0000 (10:01 +0530)]
Swap weekday and month
Arun Prakash Jana [Fri, 5 Jan 2018 22:29:36 +0000 (03:59 +0530)]
Use a date format string
Arun Prakash Jana [Fri, 5 Jan 2018 22:25:57 +0000 (03:55 +0530)]
Rearrange date format in file details
codeliveroil [Fri, 5 Jan 2018 22:19:27 +0000 (14:19 -0800)]
Use standard date formats. (#74)
- For standard view, use ISO 8601 date format.
- For detailed view (i.e. stat), use default Linux date
format. Also, remove GMT offset to avoid confusion in
determining source of offset when reading alongside
the local time zone.
Arun Prakash Jana [Thu, 4 Jan 2018 12:40:59 +0000 (18:10 +0530)]
Show target for symlinks
Arun Prakash Jana [Thu, 4 Jan 2018 12:16:06 +0000 (17:46 +0530)]
The *alloc() family is aligned
Arun Prakash Jana [Thu, 4 Jan 2018 00:53:20 +0000 (06:23 +0530)]
Wrap realloc() to return aligned address
Arun Prakash Jana [Sat, 30 Dec 2017 08:24:49 +0000 (13:54 +0530)]
Use aligned large buffers
Arun Prakash Jana [Fri, 29 Dec 2017 05:49:37 +0000 (11:19 +0530)]
Fix #73: How to discard changes and exit new/rename prompt
Arun Prakash Jana [Fri, 29 Dec 2017 05:38:07 +0000 (11:08 +0530)]
Check alignment and enable -O3
Arun Prakash Jana [Wed, 27 Dec 2017 20:17:44 +0000 (01:47 +0530)]
Fix checkpatch reports
Dmitri Goutnik [Wed, 27 Dec 2017 19:48:05 +0000 (14:48 -0500)]
Add FreeBSD as a package source (#72)
Daniel Lockyer [Wed, 27 Dec 2017 10:36:57 +0000 (10:36 +0000)]
Free allocated resources using regfree (#71)
Arun Prakash Jana [Tue, 26 Dec 2017 19:58:01 +0000 (01:28 +0530)]
Use ffs() tweak.
Arun Prakash Jana [Tue, 26 Dec 2017 19:41:38 +0000 (01:11 +0530)]
Remove arm targets
Arun Prakash Jana [Tue, 26 Dec 2017 19:02:26 +0000 (00:32 +0530)]
Explicitly cast opaque types
Arun Prakash Jana [Tue, 26 Dec 2017 18:46:23 +0000 (00:16 +0530)]
TAB is not identified on OS X
Dmitri Goutnik [Tue, 26 Dec 2017 18:23:20 +0000 (13:23 -0500)]
Lookup xdg-open in PATH on non-Apple platforms (#70)
Arun Prakash Jana [Tue, 26 Dec 2017 18:19:47 +0000 (23:49 +0530)]
Retire Makefile.native
Arun Prakash Jana [Tue, 26 Dec 2017 18:03:32 +0000 (23:33 +0530)]
Use ffs() instead of ffsl()
Arun Prakash Jana [Tue, 26 Dec 2017 17:41:48 +0000 (23:11 +0530)]
Cross compile nnn on Travis CI
Dmitri Goutnik [Tue, 26 Dec 2017 15:52:45 +0000 (10:52 -0500)]
Fix compiler warnings on FreeBSD 11.x (#69)
Arun Prakash Jana [Tue, 26 Dec 2017 13:55:52 +0000 (19:25 +0530)]
Add openSUSE to packagers
Arun Prakash Jana [Tue, 26 Dec 2017 04:34:10 +0000 (10:04 +0530)]
Update README
Update documentation
Arun Prakash Jana [Mon, 25 Dec 2017 18:19:49 +0000 (23:49 +0530)]
Update README
Arun Prakash Jana [Mon, 25 Dec 2017 17:57:37 +0000 (23:27 +0530)]
Replace getorder() by ffsl()
Arun Prakash Jana [Mon, 25 Dec 2017 12:05:27 +0000 (17:35 +0530)]
OpenSUSE gcc fails at '-fno-tree-loop-vectorize'
Arun Prakash Jana [Mon, 25 Dec 2017 11:43:25 +0000 (17:13 +0530)]
Prepare for release v1.6
Arun Prakash Jana [Mon, 25 Dec 2017 11:11:49 +0000 (16:41 +0530)]
Add OpenSUSE Leap 42.3, reorder matrix
Arun Prakash Jana [Mon, 25 Dec 2017 10:25:53 +0000 (15:55 +0530)]
Support 'Open with...'
Arun Prakash Jana [Sun, 24 Dec 2017 20:14:48 +0000 (01:44 +0530)]
Optimize xmemrchr()
Arun Prakash Jana [Sun, 24 Dec 2017 18:58:12 +0000 (00:28 +0530)]
Reduce sprintf() family usage
Arun Prakash Jana [Sun, 24 Dec 2017 17:53:52 +0000 (23:23 +0530)]
Optimize saving, matching old entry
Arun Prakash Jana [Sun, 24 Dec 2017 15:52:54 +0000 (21:22 +0530)]
Shorten error messages
Arun Prakash Jana [Sun, 24 Dec 2017 15:50:36 +0000 (21:20 +0530)]
Limit filter length to NAME_MAX from LINE_MAX
Arun Prakash Jana [Sun, 24 Dec 2017 15:33:23 +0000 (21:03 +0530)]
Use const if applicable
Arun Prakash Jana [Sun, 24 Dec 2017 13:16:56 +0000 (18:46 +0530)]
Update documentation
Arun Prakash Jana [Sun, 24 Dec 2017 09:53:33 +0000 (15:23 +0530)]
Users understand 'DIR' easier then 'cwd'
Arun Prakash Jana [Sun, 24 Dec 2017 09:51:38 +0000 (15:21 +0530)]
Add option -b to open bookmark directly
Arun Prakash Jana [Sat, 23 Dec 2017 21:45:22 +0000 (03:15 +0530)]
Order numeric file names (helps with /proc)
Arun Prakash Jana [Thu, 21 Dec 2017 19:52:08 +0000 (01:22 +0530)]
Update README
Arun Prakash Jana [Thu, 21 Dec 2017 19:49:32 +0000 (01:19 +0530)]
Replace xstricmp() with strcoll()
Arun Prakash Jana [Thu, 21 Dec 2017 19:28:02 +0000 (00:58 +0530)]
Remove redundant variable
Arun Prakash Jana [Thu, 21 Dec 2017 19:26:15 +0000 (00:56 +0530)]
Consider only symbolic or only nunmeric names
Arun Prakash Jana [Thu, 21 Dec 2017 13:42:12 +0000 (19:12 +0530)]
No need to test end of numeric
Arun Prakash Jana [Thu, 21 Dec 2017 12:19:31 +0000 (17:49 +0530)]
Ignore punctuation marks in file name compare. Fix xstrcmp().
1. File name comparison method:
- initially ignore white space and punctuation characters
- run test for numeric values
- if the remaining substrings match in case-insensitive compare, compare case
- if they still match, see which one has more prefix symbols
- if they still match, run a case-sensitive compare on complete strings
2. Fixed xstrcmp() to return diff instead of 0 and -1.
Arun Prakash Jana [Wed, 20 Dec 2017 22:31:21 +0000 (04:01 +0530)]
Update README, performance numbers
Arun Prakash Jana [Wed, 20 Dec 2017 16:50:28 +0000 (22:20 +0530)]
Add file name len to entry structure
Arun Prakash Jana [Wed, 20 Dec 2017 02:48:37 +0000 (08:18 +0530)]
Offset can be derived
Arun Prakash Jana [Tue, 19 Dec 2017 19:12:11 +0000 (00:42 +0530)]
Retire redundant variable