1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-11 14:44:20 +03:00
Commit Graph

173 Commits

Author SHA1 Message Date
Arun Prakash Jana
08d87405d0
Fix #21
We are converting multi-byte to wide char and vice versa to replace the escape
chars with ?. Otherwise we run the risk of breaking a Unicode code point.
2017-05-03 19:58:40 +05:30
Arun Prakash Jana
b730c116d6
Consider only dirs and files in nftw(3) 2017-05-02 18:20:03 +05:30
Arun Prakash Jana
64d06ccaee
Remove sizeof() is absolute cases 2017-04-29 11:02:12 +05:30
Arun Prakash Jana
1fdcaef4f5
Support search as you type 2017-04-29 09:52:43 +05:30
Arun Prakash Jana
7f4c1a447b Clear history when entering directory 2017-04-28 17:57:38 +05:30
Michael Fenn
41235445e7 Add automatic RPM builds via travis (#18)
* Add automatic RPM builds via travis

* readline.h must be imported after stdio.h to pick up def of FILE
2017-04-28 12:44:27 +05:30
Arun Prakash Jana
4af8ba19f1
Use curses.h from libncursesw on Linux 2017-04-27 20:44:21 +05:30
aaeilm
92236abf31 Exit if parent has exited (#16) 2017-04-26 00:42:07 +05:30
Arun Prakash Jana
0fd6a392db
Honour EDITOR and PAGER everywhere 2017-04-25 23:20:04 +05:30
Arun Prakash Jana
3096dfefde
Polish change directory logic
1. Strip end spaces and slashes
2. Do NOT change dir if in the same dir
3. Don't go back beyond startup dir with '-'
4. Reset oldpath on cd (other than cd . and ..)
5. Reset filter
6. Update features in README
2017-04-25 22:07:09 +05:30
Arun Prakash Jana
febda38c14
Support cd ..... 2017-04-24 18:53:03 +05:30
SZ Lin (林上智)
1ec5eb1231 MAX_PATH is not defined in some platforms, most notably GNU/Hurd. Therefore, I define it here to 4096 which is the same value in limits.h. 2017-04-24 16:03:33 +08:00
Arun Prakash Jana
012662ab89
Reformat key listing. 2017-04-24 07:36:26 +05:30
Arun Prakash Jana
b4166192e6
Support jump to initial directory
This change remaps the & key. However, / is more relevant for filter and & makes more sense wrt. address.
2017-04-24 02:36:49 +05:30
Arun Prakash Jana
00aaee9ff1
nlay - a highly customizable file handler 2017-04-23 23:31:08 +05:30
Arun Prakash Jana
ff18d580c5
Fix build break on OS X 2017-04-22 21:43:17 +05:30
Arun Prakash Jana
4790d17d04
Do not wait when spawning DE file manager 2017-04-22 19:49:00 +05:30
Arun Prakash Jana
b19778fdff
Show file details in less 2017-04-22 15:50:36 +05:30
Arun Prakash Jana
a5dedd6c24
Show help in less 2017-04-22 12:50:02 +05:30
Arun Prakash Jana
4f17c6bd65
Wrap etries within same line 2017-04-22 03:10:02 +05:30
Arun Prakash Jana
07d4252b63
Show media information using mediainfo 2017-04-21 23:56:48 +05:30
Arun Prakash Jana
4e7e871990
Use NNN_DE_FILE_MANAGER 2017-04-21 17:52:03 +05:30
Arun Prakash Jana
34a8ec2881
Hold allocated memory till program exit 2017-04-21 08:46:55 +05:30
Arun Prakash Jana
f10ef49534
Use NAME_MAX, reuse newpath, update stats 2017-04-20 23:20:28 +05:30
Arun Prakash Jana
79c1c56cbf
Support . and .. at chdir prompt 2017-04-20 21:57:24 +05:30
Arun Prakash Jana
89224cfa98
Use readline() at chdir prompt
With the features the readline library provides it would be too naive to ignore.
We break out of the curses mode into the prompt and get back in.
This change introduces dependency on libncurses.
2017-04-20 20:10:58 +05:30
Arun Prakash Jana
01c1ef6e58
Support cd on quit 2017-04-20 17:33:54 +05:30
Arun Prakash Jana
5b68fa1a67
Use libncursesw for internationalization
Update README on dependencies
2017-04-16 13:07:29 +05:30
Arun Prakash Jana
ccb320d627
Add program help 2017-04-15 00:54:38 +05:30
Arun Prakash Jana
0b4056727f
Support key 'q' to exit extra screens 2017-04-14 22:56:06 +05:30
Arun Prakash Jana
58c2000de6
Fix #8: Use digits for month, re-arrange date, time 2017-04-14 21:53:05 +05:30
Arun Prakash Jana
eb053063c2
Fix #8: set loale post ncurses init 2017-04-14 19:43:37 +05:30
Arun Prakash Jana
971895e873
Option -S: start in disk usage analyzer mode 2017-04-14 16:51:27 +05:30
Arun Prakash Jana
275b42efb0
Prepare for release v1.0 2017-04-13 19:13:33 +05:30
Arun Prakash Jana
9702abdd81
Support open current dir in desktop file manager 2017-04-12 22:20:05 +05:30
Arun Prakash Jana
286a13d891
realloc() 32 entries at a time 2017-04-11 20:22:45 +05:30
Arun Prakash Jana
74a13c645d
Maximize rlimit, switch to detail view in du mode 2017-04-11 20:22:30 +05:30
Arun Prakash Jana
afbce66747
Optimize dentfill 2017-04-11 01:58:27 +05:30
Arun Prakash Jana
f2a5002fa9
Toggle help and file details screens with same key 2017-04-10 18:35:30 +05:30
Arun Prakash Jana
a569d383bc
Use static vars 2017-04-10 18:17:12 +05:30
Arun Prakash Jana
b123985437
Show unprivileged free blocks in du mode 2017-04-10 10:28:34 +05:30
Arun Prakash Jana
cbefcfd67b
Initial path: support sort by disk usage 2017-04-10 10:28:25 +05:30
Arun Prakash Jana
e54ed037bd
Key - to jump to last visited directory 2017-04-08 13:46:03 +05:30
Arun Prakash Jana
5aa4c799c0
Remove redundant search when entering directory 2017-04-08 11:14:51 +05:30
Arun Prakash Jana
e5b9a11584
Show marker only when spawning a shell. 2017-04-06 09:57:32 +05:30
Arun Prakash Jana
205dd6db05
Try fallbak for missing apps, use popen wrapper 2017-04-06 06:29:18 +05:30
Arun Prakash Jana
b7e4968a48
Resolve ~ (HOME) at chdir prompt 2017-04-06 06:29:13 +05:30
Arun Prakash Jana
2e3502ea4b
Show notifier only for associations 2017-04-06 06:29:00 +05:30
Arun Prakash Jana
cb1a1112a8
Disable checksum calculation
Calculation can take very long. Most Unix-ish OSes have utilities to do this.
2017-04-04 10:34:18 +05:30
Arun Prakash Jana
07c59cfd62
vim-ish binding for jump to first and last entry
It was troubling me. Mimicking 'gg' would have been hacky and would need
additional processing... 'g' was free. Who cares even if you press twice? ;)
2017-04-04 09:46:52 +05:30
Arun Prakash Jana
aebe6c1898
Fix warnings. Harden compilation. 2017-04-04 07:20:38 +05:30
Arun Prakash Jana
10a18bf07e
ASCII Art to indicate nnn launched program 2017-04-04 00:37:44 +05:30
Arun Prakash Jana
30c8828e42
Use double quotes to handle file names with spaces
Remove dependency on cut.
2017-04-03 23:33:31 +05:30
Arun Prakash Jana
4b66029762
Add help screen on keybinds 2017-04-03 22:33:46 +05:30
Arun Prakash Jana
418c9f2654
Show stat, file, md5, sh256 in file details
This commit adds dependencies on file, openssl and cut binaries.
2017-04-03 20:32:09 +05:30
Arun Prakash Jana
f466ba543c
Show file details
We closely follow the output for stat(1).
2017-04-03 05:05:14 +05:30
Arun Prakash Jana
87e0891b8d
Remove redundant stuff
1. Have a faster copy of strlcpy()
2. Remove redundant legacy files
3. Fix an issue with NULL check on array name
2017-04-02 21:45:10 +05:30
Arun Prakash Jana
4bc2ce0fbc
Optimize directory search 2017-04-02 14:33:36 +05:30
Arun Prakash Jana
691291245a
Use standard function for numeric sort
Numeric is numeric i.e., n, -n. +n.
Other forms such as --n, ++n, -c, +c should not be considered numeric.

If size is same (e.g. dirs), use alphanum sort.
2017-04-02 12:13:40 +05:30
Arun Prakash Jana
90e98b832b
Revert non-portable optimization 2017-04-02 08:23:13 +05:30
Arun Prakash Jana
0aa1d43428
Show message when trying to go above / 2017-04-02 02:50:56 +05:30
Arun Prakash Jana
951d323616
Show directories first 2017-04-02 01:48:33 +05:30
Arun Prakash Jana
0e82544199
Support sort by numeric value for numeric names 2017-04-02 01:21:31 +05:30
Arun Prakash Jana
6e7aaa18fb
Show sort order if applied 2017-04-01 21:03:58 +05:30
Arun Prakash Jana
8f18c4049c
An optimized dirname() 2017-04-01 17:32:58 +05:30
Arun Prakash Jana
7be7a6d215
Optimizations 2017-04-01 14:41:07 +05:30
Arun Prakash Jana
f3d95b6d0d
Show indicators in column 2017-04-01 13:05:20 +05:30
Arun Prakash Jana
54a307767c
Support opening in detail view mode 2017-04-01 10:48:18 +05:30
Arun Prakash Jana
aeeeed0bce
Change vim to vi 2017-03-31 22:25:56 +05:30
Arun Prakash Jana
8563ec5cb2
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.
2017-03-31 21:30:00 +05:30
Arun Prakash Jana
eb12354ce4
Show indicator with filename in bar 2017-03-31 19:32:59 +05:30
Arun Prakash Jana
86c3f75512
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.
2017-03-31 01:34:41 +05:30
Arun Prakash Jana
8775a52779
Rename project to nnn (Noice is Not Noice) 2017-03-30 23:57:38 +05:30