]> Sergey Matveev's repositories - nnn.git/log
nnn.git
7 years agoUndocumented keys: F2, F5
Arun Prakash Jana [Sun, 27 Aug 2017 18:10:43 +0000 (23:40 +0530)]
Undocumented keys: F2, F5

7 years agoFix cursor position issue with astral symbols
Arun Prakash Jana [Sat, 26 Aug 2017 08:04:43 +0000 (13:34 +0530)]
Fix cursor position issue with astral symbols

In case of astral symbols like Devanagari matras multiple wide-char codepoints
occupy a single position/column. Positioning the cursor wrt. the actual number
of wide-characters in a wide-char string gets "visually incorrect".  The trick
is to calculate the correct number of columns needed to represent a fixed-size
wide-character string.

Relevant man pages:

1. wcswidth(3)
2. wctomb(3)
3. mblen(3)

Interesting links:

1. https://www.gnu.org/software/libc/manual/html_node/Non_002dreentrant-Character-Conversion.html
2. https://www.gnu.org/software/libc/manual/html_node/Shift-State.html
3. https://10hash.com/c-programming/uchar/
4. https://mathiasbynens.be/notes/javascript-unicode#accounting-for-astral-symbols

Example file names for test:

1. Malgudi Days - मालगुडी डेज - E05. Swami and Friends - स्वामी और उसके दोस्त (Part 5)
2. Eso eso aamar ghare eso ♫ এসো এসো আমার ঘরে এসো ♫ Swagatalakshmi Dasgupta
3. Führer

7 years agoA shorter overwrite message (key is not echoed)
Arun Prakash Jana [Sat, 26 Aug 2017 04:07:04 +0000 (09:37 +0530)]
A shorter overwrite message (key is not echoed)

7 years agoRevert "Handle multi-byte: 2 codepoints single column"
Arun Prakash Jana [Fri, 25 Aug 2017 21:12:33 +0000 (02:42 +0530)]
Revert "Handle multi-byte: 2 codepoints single column"

This reverts commit e8cf0dc663436e2ac30f737a17d8cc91efbdd364.

7 years agoHandle multi-byte: 2 codepoints single column
Arun Prakash Jana [Fri, 25 Aug 2017 21:05:01 +0000 (02:35 +0530)]
Handle multi-byte: 2 codepoints single column

Very frequent with Devanagari scripts ('matra's)

7 years agoMore concise help
Arun Prakash Jana [Fri, 25 Aug 2017 16:39:03 +0000 (22:09 +0530)]
More concise help

7 years agoClear rename prompt with Ctrl-L
Arun Prakash Jana [Fri, 25 Aug 2017 16:19:55 +0000 (21:49 +0530)]
Clear rename prompt with Ctrl-L

7 years agoThe '> ' as rename prompt is distracting
Arun Prakash Jana [Fri, 25 Aug 2017 13:52:30 +0000 (19:22 +0530)]
The '> ' as rename prompt is distracting

7 years agombstowcs() returns the codepoints
Arun Prakash Jana [Fri, 25 Aug 2017 12:57:06 +0000 (18:27 +0530)]
mbstowcs() returns the codepoints

7 years agoSimplify filter handling
Arun Prakash Jana [Fri, 25 Aug 2017 08:40:57 +0000 (14:10 +0530)]
Simplify filter handling

7 years agoGet rid of getch() ('Führer' works now)
Arun Prakash Jana [Fri, 25 Aug 2017 08:27:22 +0000 (13:57 +0530)]
Get rid of getch() ('Führer' works now)

7 years agoShow line number only on fatal error
Arun Prakash Jana [Thu, 24 Aug 2017 16:56:46 +0000 (22:26 +0530)]
Show line number only on fatal error

7 years agoRe-order macros, globals...
Arun Prakash Jana [Thu, 24 Aug 2017 15:18:01 +0000 (20:48 +0530)]
Re-order macros, globals...

7 years agoRemove extern ref to wget_wch()
Arun Prakash Jana [Thu, 24 Aug 2017 14:13:11 +0000 (19:43 +0530)]
Remove extern ref to wget_wch()

7 years agoRemove extern ref to add_history()
Arun Prakash Jana [Thu, 24 Aug 2017 14:06:33 +0000 (19:36 +0530)]
Remove extern ref to add_history()

7 years agoFix build failure
Arun Prakash Jana [Thu, 24 Aug 2017 12:24:59 +0000 (17:54 +0530)]
Fix build failure

7 years agoShow volume capacity in help
Arun Prakash Jana [Thu, 24 Aug 2017 12:20:00 +0000 (17:50 +0530)]
Show volume capacity in help

7 years agoRename MAX_BM to BM_MAX
Arun Prakash Jana [Thu, 24 Aug 2017 04:46:35 +0000 (10:16 +0530)]
Rename MAX_BM to BM_MAX

7 years agoSupport multi-byte string in rename
Arun Prakash Jana [Thu, 24 Aug 2017 04:45:32 +0000 (10:15 +0530)]
Support multi-byte string in rename

7 years agoShow filename in rename
Arun Prakash Jana [Thu, 24 Aug 2017 01:34:56 +0000 (07:04 +0530)]
Show filename in rename

7 years agoAdd checks before dir access
Arun Prakash Jana [Wed, 23 Aug 2017 12:43:22 +0000 (18:13 +0530)]
Add checks before dir access

7 years agoRemove shortcut F2 for refresh.
Arun Prakash Jana [Wed, 23 Aug 2017 12:06:32 +0000 (17:36 +0530)]
Remove shortcut F2 for refresh.

F2 is not very portable e.g., doesn't work over putty (default settings).

7 years agoDisable dir watch in filter mode
Arun Prakash Jana [Tue, 22 Aug 2017 21:58:26 +0000 (03:28 +0530)]
Disable dir watch in filter mode

7 years agoUse hyphen within date
Arun Prakash Jana [Tue, 22 Aug 2017 19:47:09 +0000 (01:17 +0530)]
Use hyphen within date

7 years agoUpdate features
Arun Prakash Jana [Tue, 22 Aug 2017 19:24:29 +0000 (00:54 +0530)]
Update features

7 years agoSupport in-place file rename
Arun Prakash Jana [Tue, 22 Aug 2017 19:16:58 +0000 (00:46 +0530)]
Support in-place file rename

7 years agoLine length size limit is now 139
Arun Prakash Jana [Tue, 22 Aug 2017 17:04:17 +0000 (22:34 +0530)]
Line length size limit is now 139

7 years agoDo not follow mounted fs in du mode
Arun Prakash Jana [Tue, 22 Aug 2017 16:01:06 +0000 (21:31 +0530)]
Do not follow mounted fs in du mode

7 years agoImplement BSD, Apple dir watch (#35)
Arun Prakash Jana [Mon, 21 Aug 2017 16:33:26 +0000 (22:03 +0530)]
Implement BSD, Apple dir watch (#35)

7 years agoWatch out for directory changes
Arun Prakash Jana [Sun, 20 Aug 2017 20:48:14 +0000 (02:18 +0530)]
Watch out for directory changes

7 years agoLimit max open fds to 20K.
Arun Prakash Jana [Sun, 20 Aug 2017 19:25:45 +0000 (00:55 +0530)]
Limit max open fds to 20K.

7 years agoA compact help format
Arun Prakash Jana [Sun, 20 Aug 2017 16:10:52 +0000 (21:40 +0530)]
A compact help format

7 years agoSupport mark a directory
Arun Prakash Jana [Sun, 20 Aug 2017 11:17:23 +0000 (16:47 +0530)]
Support mark a directory

In certain workflows you know you would have revisit a directory. Mark it!

7 years agognome-search-tool: add option --path
Arun Prakash Jana [Thu, 17 Aug 2017 03:13:24 +0000 (08:43 +0530)]
gnome-search-tool: add option --path

7 years agoRe-order installation section
Arun Prakash Jana [Mon, 14 Aug 2017 00:13:01 +0000 (05:43 +0530)]
Re-order installation section

7 years agoAdd section on packages
Arun Prakash Jana [Sun, 13 Aug 2017 14:50:37 +0000 (20:20 +0530)]
Add section on packages

7 years agoShow vol free in help
Arun Prakash Jana [Fri, 11 Aug 2017 20:12:55 +0000 (01:42 +0530)]
Show vol free in help

7 years agoAdd goodies
Arun Prakash Jana [Fri, 28 Jul 2017 21:59:11 +0000 (03:29 +0530)]
Add goodies

7 years agoUpdate readme
Arun Prakash Jana [Wed, 26 Jul 2017 04:04:30 +0000 (09:34 +0530)]
Update readme

7 years agoPrepare for release v1.3 v1.3
Arun Prakash Jana [Wed, 26 Jul 2017 04:01:03 +0000 (09:31 +0530)]
Prepare for release v1.3

7 years agoFix #34: use ~75% of max open file descs
Arun Prakash Jana [Tue, 25 Jul 2017 04:43:22 +0000 (10:13 +0530)]
Fix #34: use ~75% of max open file descs

7 years agoUpdate fedora version to 26 (#33)
Michael Fenn [Wed, 12 Jul 2017 07:04:23 +0000 (03:04 -0400)]
Update fedora version to 26 (#33)

7 years agoRemove tab
Arun Prakash Jana [Sun, 9 Jul 2017 02:11:44 +0000 (07:41 +0530)]
Remove tab

7 years agoReset current on empty filter prompt
Arun Prakash Jana [Sat, 8 Jul 2017 05:32:17 +0000 (11:02 +0530)]
Reset current on empty filter prompt

7 years agoOption -n is redundant
Arun Prakash Jana [Wed, 5 Jul 2017 18:32:09 +0000 (00:02 +0530)]
Option -n is redundant

7 years agoCode refactoring
Arun Prakash Jana [Wed, 5 Jul 2017 16:38:13 +0000 (22:08 +0530)]
Code refactoring

7 years agoUse xmemrchr() instead of strrchr()
Arun Prakash Jana [Wed, 5 Jul 2017 04:47:42 +0000 (10:17 +0530)]
Use xmemrchr() instead of strrchr()

7 years agoChange single-line 0-arg APIs to macros
Arun Prakash Jana [Wed, 5 Jul 2017 04:08:19 +0000 (09:38 +0530)]
Change single-line 0-arg APIs to macros

7 years agoRetire config.def.h, unify Makefiles
Arun Prakash Jana [Wed, 5 Jul 2017 03:08:34 +0000 (08:38 +0530)]
Retire config.def.h, unify Makefiles

7 years agoUpdate memory usage (latest release)
Arun Prakash Jana [Wed, 5 Jul 2017 02:47:51 +0000 (08:17 +0530)]
Update memory usage (latest release)

7 years agoMore concise help screen.
Arun Prakash Jana [Tue, 4 Jul 2017 04:31:15 +0000 (10:01 +0530)]
More concise help screen.

7 years agoMore optimization
Arun Prakash Jana [Mon, 3 Jul 2017 13:38:38 +0000 (19:08 +0530)]
More optimization

7 years agoUse the global buffer
Arun Prakash Jana [Mon, 3 Jul 2017 12:39:11 +0000 (18:09 +0530)]
Use the global buffer

7 years agoRe-format help
Arun Prakash Jana [Mon, 3 Jul 2017 04:16:37 +0000 (09:46 +0530)]
Re-format help

7 years agoCustom color support for directories
Arun Prakash Jana [Sun, 2 Jul 2017 20:56:47 +0000 (02:26 +0530)]
Custom color support for directories

7 years agoRepeat search: reset current selection
Arun Prakash Jana [Sun, 2 Jul 2017 20:19:14 +0000 (01:49 +0530)]
Repeat search: reset current selection

7 years agoCalculate word size inline
Arun Prakash Jana [Sun, 2 Jul 2017 19:25:47 +0000 (00:55 +0530)]
Calculate word size inline

7 years agoUnify cd HOME and BEGIN
Arun Prakash Jana [Sun, 2 Jul 2017 18:58:09 +0000 (00:28 +0530)]
Unify cd HOME and BEGIN

7 years agoAdd option -e to use exiftool
Arun Prakash Jana [Sun, 2 Jul 2017 18:27:41 +0000 (23:57 +0530)]
Add option -e to use exiftool

7 years agoUse non-blocking pipes
Arun Prakash Jana [Sun, 2 Jul 2017 15:02:38 +0000 (20:32 +0530)]
Use non-blocking pipes

7 years agoShow correct information for symbolic links
Arun Prakash Jana [Sun, 2 Jul 2017 11:09:06 +0000 (16:39 +0530)]
Show correct information for symbolic links

7 years agocheckpatch fixes
Arun Prakash Jana [Sun, 2 Jul 2017 10:42:30 +0000 (16:12 +0530)]
checkpatch fixes

7 years agoHome-grown APIs, reduced binary size (<40KB)
Arun Prakash Jana [Fri, 30 Jun 2017 20:03:34 +0000 (01:33 +0530)]
Home-grown APIs, reduced binary size (<40KB)

7 years agoReplace open and close dir with access()
Arun Prakash Jana [Fri, 30 Jun 2017 12:19:43 +0000 (17:49 +0530)]
Replace open and close dir with access()

7 years agoUse bold blue for dirs, reset color
Arun Prakash Jana [Fri, 30 Jun 2017 12:20:38 +0000 (17:50 +0530)]
Use bold blue for dirs, reset color

7 years agoShow directories in color (default: enabled)
Arun Prakash Jana [Fri, 30 Jun 2017 01:54:24 +0000 (07:24 +0530)]
Show directories in color (default: enabled)

7 years agoSimplify argument handling
Arun Prakash Jana [Thu, 29 Jun 2017 23:57:25 +0000 (05:27 +0530)]
Simplify argument handling

7 years agoAdd Debian badge
Arun Prakash Jana [Thu, 29 Jun 2017 13:27:02 +0000 (18:57 +0530)]
Add Debian badge

7 years agoPrepare for release v1.2 v1.2
Arun Prakash Jana [Thu, 29 Jun 2017 04:18:11 +0000 (09:48 +0530)]
Prepare for release v1.2

7 years agoPre-calculate spawned shell level
Arun Prakash Jana [Wed, 28 Jun 2017 04:29:43 +0000 (09:59 +0530)]
Pre-calculate spawned shell level

7 years agoShow 1 while spawning a subshell
Arun Prakash Jana [Sun, 25 Jun 2017 17:25:46 +0000 (22:55 +0530)]
Show 1 while spawning a subshell

7 years agoSupport F2 to refresh
Arun Prakash Jana [Sun, 25 Jun 2017 04:33:30 +0000 (10:03 +0530)]
Support F2 to refresh

7 years agoUse refresh() to reflect print
Arun Prakash Jana [Fri, 23 Jun 2017 12:22:42 +0000 (17:52 +0530)]
Use refresh() to reflect print

7 years agoShow a message when busy
Arun Prakash Jana [Thu, 22 Jun 2017 12:53:44 +0000 (18:23 +0530)]
Show a message when busy

7 years agoUse fstatat() istead of lstat()
Arun Prakash Jana [Thu, 22 Jun 2017 12:50:48 +0000 (18:20 +0530)]
Use fstatat() istead of lstat()

7 years agoShow total files in du mode
Arun Prakash Jana [Thu, 22 Jun 2017 04:09:17 +0000 (09:39 +0530)]
Show total files in du mode

7 years agoUse correct data type and names for block count
Arun Prakash Jana [Thu, 22 Jun 2017 01:56:05 +0000 (07:26 +0530)]
Use correct data type and names for block count

7 years agoAdd if blocks used (helps in large dirs)
Arun Prakash Jana [Thu, 22 Jun 2017 01:37:51 +0000 (07:07 +0530)]
Add if blocks used (helps in large dirs)

7 years agoShow content size of cur dir in du mode
Arun Prakash Jana [Wed, 21 Jun 2017 18:21:53 +0000 (23:51 +0530)]
Show content size of cur dir in du mode

7 years agoMinor changes
Arun Prakash Jana [Wed, 21 Jun 2017 04:19:02 +0000 (09:49 +0530)]
Minor changes

7 years agoUse macros for flags to spawn()
Arun Prakash Jana [Tue, 20 Jun 2017 15:59:37 +0000 (21:29 +0530)]
Use macros for flags to spawn()

7 years agoUse bitfields for settings
Arun Prakash Jana [Tue, 20 Jun 2017 14:58:53 +0000 (20:28 +0530)]
Use bitfields for settings

7 years agoRe-structure header
Arun Prakash Jana [Tue, 20 Jun 2017 04:56:31 +0000 (10:26 +0530)]
Re-structure header

7 years agoAn undocumented debug mode
Arun Prakash Jana [Mon, 19 Jun 2017 16:51:08 +0000 (22:21 +0530)]
An undocumented debug mode

1. The debug file is located at /tmp/nnn_debug.
2. Debug mode is completely disabled by default. The debug binary `nnndbg` can
be built by running `make debug`.

7 years agoUse preincr and predecr
Arun Prakash Jana [Sat, 17 Jun 2017 06:58:21 +0000 (12:28 +0530)]
Use preincr and predecr

7 years agoPush curses exit() and init() to functions
Arun Prakash Jana [Thu, 15 Jun 2017 16:04:47 +0000 (21:34 +0530)]
Push curses exit() and init() to functions

7 years agoFix reasonable checkpatch reports
Arun Prakash Jana [Thu, 15 Jun 2017 14:04:56 +0000 (19:34 +0530)]
Fix reasonable checkpatch reports

7 years agoFix build failure
Arun Prakash Jana [Sun, 11 Jun 2017 14:39:42 +0000 (20:09 +0530)]
Fix build failure

7 years agoShow current config along with help
Arun Prakash Jana [Sun, 11 Jun 2017 13:54:02 +0000 (19:24 +0530)]
Show current config along with help

7 years agoSupport bookmarks
Arun Prakash Jana [Sun, 11 Jun 2017 04:15:50 +0000 (09:45 +0530)]
Support bookmarks

7 years agoSuppress output when spawning DE file manager
Arun Prakash Jana [Wed, 7 Jun 2017 05:56:33 +0000 (11:26 +0530)]
Suppress output when spawning DE file manager

7 years agoWhen filter is empty, open file on Enter
Arun Prakash Jana [Tue, 6 Jun 2017 21:34:47 +0000 (03:04 +0530)]
When filter is empty, open file on Enter

7 years agoExit once an app is found. Help, doc updates.
Arun Prakash Jana [Tue, 6 Jun 2017 16:07:16 +0000 (21:37 +0530)]
Exit once an app is found. Help, doc updates.

7 years agoSet to the lat selected file
Arun Prakash Jana [Tue, 6 Jun 2017 16:01:40 +0000 (21:31 +0530)]
Set to the lat selected file

7 years agoSet detail view mode as default, introduce light mode
Arun Prakash Jana [Tue, 6 Jun 2017 15:31:28 +0000 (21:01 +0530)]
Set detail view mode as default, introduce light mode

7 years agoWe copy the absolute file path
Arun Prakash Jana [Tue, 6 Jun 2017 14:54:04 +0000 (20:24 +0530)]
We copy the absolute file path

7 years agoOptionally use EDITOR (fallback vi) for text files
Arun Prakash Jana [Tue, 6 Jun 2017 14:46:32 +0000 (20:16 +0530)]
Optionally use EDITOR (fallback vi) for text files

7 years agodesktop opener - xdg-open on Linux and open(1) on OS X
Arun Prakash Jana [Mon, 5 Jun 2017 18:26:38 +0000 (23:56 +0530)]
desktop opener - xdg-open on Linux and open(1) on OS X

7 years agonlay - support multiple apps
Arun Prakash Jana [Mon, 5 Jun 2017 04:54:28 +0000 (10:24 +0530)]
nlay - support multiple apps

7 years agoDisable key to run top
Arun Prakash Jana [Sun, 4 Jun 2017 20:59:34 +0000 (02:29 +0530)]
Disable key to run top