Commit graph

4155 commits

Author SHA1 Message Date
Arun Prakash Jana 3e74827cab
Fix alignment in examples 2017-10-02 08:17:41 +05:30
Arun Prakash Jana d62ce4bb5e
Remove redundant conversion 2017-10-01 18:59:43 +05:30
Arun Prakash Jana c66c941a97
Disable noti subscription for the same dir 2017-10-01 16:13:35 +05:30
Arun Prakash Jana 79cbc40a7f
Change archive list shortcut to 'F' 2017-10-01 04:28:48 +05:30
Arun Prakash Jana 20e8116a6c
Fix #44: document PAGER usage in certain screens 2017-09-30 05:47:38 +05:30
Arun Prakash Jana b0a806ae2e
Enable O3 optimization 2017-09-27 22:48:46 +05:30
Arun Prakash Jana 6bfbff9519
Revert "Archive handling on OS X using unar+lsar"
This reverts commit 1e859eb1370bd67cecd06b7bc8c6f885b80554bd.
We will use atool on OS X as well, it can be brewed easily.
2017-09-27 22:14:09 +05:30
Arun Prakash Jana 7c54f073fc
Archive handling on OS X using unar+lsar 2017-09-27 22:14:07 +05:30
Arun Prakash Jana 71d27de517
Support archive listing and extraction 2017-09-27 22:14:01 +05:30
Arun Prakash Jana a594c876be
Show current entry number in du mode 2017-09-27 17:37:36 +05:30
Arun Prakash Jana 082974dc8e
Show current entry number.
...because you need to know where you are.
2017-09-27 02:08:58 +05:30
Arun Prakash Jana bc76c0f7ee
Fix #42 2017-09-24 23:46:34 +05:30
Arun Prakash Jana 7a586da34d
Add badge to PPA for Ubuntu variants 2017-09-23 23:02:35 +05:30
Arun Prakash Jana f2e58288e7
nnn is on Ubuntu 17.10 2017-09-23 19:38:56 +05:30
Arun Prakash Jana 54e2bf57f8
Add step to set NNN_NOWAIT in Quickstart 2017-09-20 08:41:15 +05:30
Arun Prakash Jana 55643a5fcc
Update NNN_NOWAIT changes 2017-09-19 19:55:02 +05:30
Paul df4b557ca1 Prevent nnn from waiting on open file process (#40)
* Prevent nnn from waiting on open file process

* Add env var flag to not wait for child process when opening file

* Set nowait flag once to skip bit-or every time we open a file

* Add documentation for NNN_NOWAIT
2017-09-19 12:00:54 +05:30
Arun Prakash Jana 968beb434a
Skip entries in case fstatat() fails, do not exit 2017-09-13 18:44:27 +05:30
Arun Prakash Jana a75cf50de5
New video 2017-09-11 02:29:54 +05:30
Arun Prakash Jana 28f69e59fa
Support file and dir create 2017-09-10 13:05:25 +05:30
Arun Prakash Jana 5ab6dd2fed
Convert metaviewer and color to bitfields 2017-09-09 02:16:10 +05:30
Arun Prakash Jana 321a618192
Add general info in help 2017-09-09 01:10:21 +05:30
Arun Prakash Jana dd240bfc34
Add package information 2017-09-05 18:07:45 +05:30
Arun Prakash Jana 361b59ea97
Change donation button 2017-09-05 02:41:59 +05:30
Arun Prakash Jana 52f7f9c9a3
Add gcc, pkg-config as build deps 2017-09-04 10:56:28 +05:30
Arun Prakash Jana d0b184933f
Update README 2017-09-04 10:27:23 +05:30
Arun Prakash Jana 91ab00061c
Prepare for v1.4 release 2017-09-04 10:23:02 +05:30
Arun Prakash Jana ecd54bc8b4
Clean up after compilation 2017-09-03 09:06:05 +05:30
Arun Prakash Jana a982a195ce
Add pin directory in cool list 2017-09-02 19:34:02 +05:30
Arun Prakash Jana 335242a1eb
Make test script more aggressive 2017-09-02 18:09:47 +05:30
Arun Prakash Jana c35c1afa87
Reorder APIs 2017-09-02 14:09:34 +05:30
Arun Prakash Jana 056a79635a
Disable dircolor if no sub-directories
Fix regression from 1e5a0b8c5b.
2017-09-02 14:02:29 +05:30
Arun Prakash Jana d0e4c0aac2
Add tests for Unicode and astral codepoints 2017-09-02 13:28:58 +05:30
Arun Prakash Jana 17350ecca4
Note Makefile.native differences 2017-09-02 12:47:02 +05:30
Arun Prakash Jana f6cb248975
Re-arrange artifacts 2017-09-02 12:34:29 +05:30
Arun Prakash Jana 0cc3198ceb
Make mktest.sh an executable 2017-09-02 12:24:40 +05:30
Arun Prakash Jana 564eafbeb3
Add auto-completion scripts 2017-09-02 12:23:19 +05:30
Arun Prakash Jana 277cf66097
Move config.h to nnn.h 2017-09-02 11:39:44 +05:30
Arun Prakash Jana e2cde6c325
Change name to scripts directory 2017-09-02 11:15:10 +05:30
Arun Prakash Jana c88650832c
Integrate PackageCore to generate packages 2017-09-02 10:35:44 +05:30
Arun Prakash Jana e2fae851c3
Use 'pin' dir instead of 'mark' dir 2017-09-01 19:57:36 +05:30
Arun Prakash Jana c248f42c31
Calculate number of cols for name only once 2017-09-01 19:30:25 +05:30
Arun Prakash Jana 7ec524c231
Change to light mode if < 35 columns are available 2017-09-01 18:58:32 +05:30
Arun Prakash Jana 2e3f013ce3
Remove redundant variable 2017-09-01 17:50:14 +05:30
Arun Prakash Jana dcc9b62760
Adjusting number of cols is redundant with shortening. 2017-09-01 10:45:10 +05:30
Arun Prakash Jana 1e5a0b8c5b
Fix #36: uneven splitting of codepoints
Check if the number of columns needed to print name exceeds the number of cols.
If it does, split the name str at the max number of columns available for name.
Conversion to wide char ensures the split is done at a valid codepoint.

The current patch adds some optimization as well:

- No more copying to an intermediate (global) string.
- If the name is shortened, escape chars are replaced only till the terminator.
2017-09-01 10:22:44 +05:30
Arun Prakash Jana 2e33c577b1
Undocumented keys: F2, F5 2017-08-27 23:40:43 +05:30
Arun Prakash Jana c49b79d792
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
2017-08-26 14:46:49 +05:30
Arun Prakash Jana ac03793547
A shorter overwrite message (key is not echoed) 2017-08-26 09:37:04 +05:30
Arun Prakash Jana 6b6182a61a Revert "Handle multi-byte: 2 codepoints single column"
This reverts commit e8cf0dc663.
2017-08-26 02:42:33 +05:30