Arun Prakash Jana
6bfbff9519
Revert "Archive handling on OS X using unar+lsar"
This reverts commit 1e859eb137
.
We will use atool on OS X as well, it can be brewed easily.
il y a 7 ans
Arun Prakash Jana
7c54f073fc
Archive handling on OS X using unar+lsar
il y a 7 ans
Arun Prakash Jana
71d27de517
Support archive listing and extraction
il y a 7 ans
Arun Prakash Jana
a594c876be
Show current entry number in du mode
il y a 7 ans
Arun Prakash Jana
082974dc8e
Show current entry number.
...because you need to know where you are.
il y a 7 ans
Arun Prakash Jana
bc76c0f7ee
Fix #42
il y a 7 ans
Arun Prakash Jana
55643a5fcc
Update NNN_NOWAIT changes
il y a 7 ans
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
il y a 7 ans
Arun Prakash Jana
968beb434a
Skip entries in case fstatat() fails, do not exit
il y a 7 ans
Arun Prakash Jana
28f69e59fa
Support file and dir create
il y a 7 ans
Arun Prakash Jana
5ab6dd2fed
Convert metaviewer and color to bitfields
il y a 7 ans
Arun Prakash Jana
321a618192
Add general info in help
il y a 7 ans
Arun Prakash Jana
91ab00061c
Prepare for v1.4 release
il y a 7 ans
Arun Prakash Jana
c35c1afa87
Reorder APIs
il y a 7 ans
Arun Prakash Jana
056a79635a
Disable dircolor if no sub-directories
Fix regression from 1e5a0b8c5b
.
il y a 7 ans
Arun Prakash Jana
277cf66097
Move config.h to nnn.h
il y a 7 ans
Arun Prakash Jana
e2fae851c3
Use 'pin' dir instead of 'mark' dir
il y a 7 ans
Arun Prakash Jana
c248f42c31
Calculate number of cols for name only once
il y a 7 ans
Arun Prakash Jana
7ec524c231
Change to light mode if < 35 columns are available
il y a 7 ans
Arun Prakash Jana
2e3f013ce3
Remove redundant variable
il y a 7 ans
Arun Prakash Jana
dcc9b62760
Adjusting number of cols is redundant with shortening.
il y a 7 ans
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.
il y a 7 ans
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
il y a 7 ans
Arun Prakash Jana
ac03793547
A shorter overwrite message (key is not echoed)
il y a 7 ans
Arun Prakash Jana
6b6182a61a
Revert "Handle multi-byte: 2 codepoints single column"
This reverts commit e8cf0dc663
.
il y a 7 ans
Arun Prakash Jana
e8cf0dc663
Handle multi-byte: 2 codepoints single column
Very frequent with Devanagari scripts ('matra's)
il y a 7 ans
Arun Prakash Jana
f94235333a
More concise help
il y a 7 ans
Arun Prakash Jana
776d782fcf
Clear rename prompt with Ctrl-L
il y a 7 ans
Arun Prakash Jana
4196af94f7
The '> ' as rename prompt is distracting
il y a 7 ans
Arun Prakash Jana
ccdb95f3ab
mbstowcs() returns the codepoints
il y a 7 ans
Arun Prakash Jana
b854f396cf
Simplify filter handling
il y a 7 ans
Arun Prakash Jana
efc70f33e5
Get rid of getch() ('Führer' works now)
il y a 7 ans
Arun Prakash Jana
76d582d5cd
Show line number only on fatal error
il y a 7 ans
Arun Prakash Jana
512b7ac6cd
Re-order macros, globals...
il y a 7 ans
Arun Prakash Jana
f31978573e
Remove extern ref to wget_wch()
il y a 7 ans
Arun Prakash Jana
05bb9db9e1
Remove extern ref to add_history()
il y a 7 ans
Arun Prakash Jana
08b5fc8231
Fix build failure
il y a 7 ans
Arun Prakash Jana
2f40eb5efc
Show volume capacity in help
il y a 7 ans
Arun Prakash Jana
7275d68ab7
Rename MAX_BM to BM_MAX
il y a 7 ans
Arun Prakash Jana
7c52e4a89e
Support multi-byte string in rename
il y a 7 ans
Arun Prakash Jana
f4b2e3a5df
Show filename in rename
il y a 7 ans
Arun Prakash Jana
e3bce10908
Add checks before dir access
il y a 7 ans
Arun Prakash Jana
f53f1b86e0
Remove shortcut F2 for refresh.
F2 is not very portable e.g., doesn't work over putty (default settings).
il y a 7 ans
Arun Prakash Jana
be337d883e
Disable dir watch in filter mode
il y a 7 ans
Arun Prakash Jana
fb521a7a94
Use hyphen within date
il y a 7 ans
Arun Prakash Jana
0b3bec329f
Support in-place file rename
il y a 7 ans
Arun Prakash Jana
5404cee9ee
Line length size limit is now 139
il y a 7 ans
Arun Prakash Jana
081cb3a3e8
Do not follow mounted fs in du mode
il y a 7 ans
Arun Prakash Jana
96e9028226
Implement BSD, Apple dir watch ( #35 )
il y a 7 ans
Arun Prakash Jana
e4596db30a
Watch out for directory changes
il y a 7 ans