]>
Sergey Matveev's repositories - nnn.git/log
Arun Prakash Jana [Mon, 18 Nov 2019 14:24:14 +0000 (19:54 +0530)]
Seek advantage of kernel readahead()
References:
1. http://man7.org/linux/man-pages/man2/posix_fadvise.2.html
2. https://www.oreilly.com/library/view/linux-system-programming/
9781449341527 /ch04.html
Arun Prakash Jana [Mon, 18 Nov 2019 14:04:03 +0000 (19:34 +0530)]
Use boxes to show number of selected files.
Arun Prakash Jana [Mon, 18 Nov 2019 13:20:08 +0000 (18:50 +0530)]
Update man page on executing commands directly.
Remove extra static string.
Mischievous Meerkat [Mon, 18 Nov 2019 06:41:35 +0000 (12:11 +0530)]
Update ndiff
Mischievous Meerkat [Mon, 18 Nov 2019 06:40:50 +0000 (12:10 +0530)]
Update quitcd.csh
Arun Prakash Jana [Sun, 17 Nov 2019 22:34:04 +0000 (04:04 +0530)]
Always open vimdiff at start of file
Arun Prakash Jana [Sun, 17 Nov 2019 19:00:00 +0000 (00:30 +0530)]
Add key ; to execute plugin
Arun Prakash Jana [Sun, 17 Nov 2019 17:58:32 +0000 (23:28 +0530)]
Update plugin docs
Arun Prakash Jana [Sun, 17 Nov 2019 16:26:05 +0000 (21:56 +0530)]
Show output after running command
Arun Prakash Jana [Sun, 17 Nov 2019 15:32:43 +0000 (21:02 +0530)]
Do not update merged file, remove README.md
Arun Prakash Jana [Sun, 17 Nov 2019 14:50:21 +0000 (20:20 +0530)]
Fix line count when editing selection
KlzXS [Sun, 17 Nov 2019 14:22:36 +0000 (15:22 +0100)]
getpulgs now asks before overwriting (#385)
* getpulgs now asks before overwriting
* Forgot a space
Arun Prakash Jana [Sun, 17 Nov 2019 13:47:39 +0000 (19:17 +0530)]
Revert "Fix #384: support busybox xargs"
This reverts commit
407b690404e60f3c66a8b7bb2b580b8d2e6e61f3 .
Arun Prakash Jana [Sun, 17 Nov 2019 13:44:30 +0000 (19:14 +0530)]
Plugin fzhist
Arun Prakash Jana [Sun, 17 Nov 2019 12:15:22 +0000 (17:45 +0530)]
Fix #384: support busybox xargs
Arun Prakash Jana [Sun, 17 Nov 2019 09:03:30 +0000 (14:33 +0530)]
Block nesting of nnn instances
Arun Prakash Jana [Sun, 17 Nov 2019 07:38:26 +0000 (13:08 +0530)]
Rename fzy-open to fzopen
Arun Prakash Jana [Sun, 17 Nov 2019 04:47:38 +0000 (10:17 +0530)]
Add image of plugin gutenread in action
Arun Prakash Jana [Sun, 17 Nov 2019 04:35:23 +0000 (10:05 +0530)]
Fixes the following workflow:
- press pick plugin key
- navigate away from the plugin directory (to ~, say)
- try to open any file, fails
When we are in run plugin mode, but detect we are in a different
context or a non-plugin directory, just cancel the runplgin mode
and continue as usual.
It also cleans up the plugin run function.
Arun Prakash Jana [Sun, 17 Nov 2019 00:06:39 +0000 (05:36 +0530)]
Clear prompt after running a command.
Arun Prakash Jana [Sun, 17 Nov 2019 00:00:14 +0000 (05:30 +0530)]
Update help
Arun Prakash Jana [Sat, 16 Nov 2019 23:19:50 +0000 (04:49 +0530)]
Do not reload for help, edit and page if in selection mode
Arun Prakash Jana [Sat, 16 Nov 2019 22:41:27 +0000 (04:11 +0530)]
Change the key to size sort to z
Arun Prakash Jana [Sat, 16 Nov 2019 16:16:15 +0000 (21:46 +0530)]
Redraw in non-filter mode after hovered file deletion
Arun Prakash Jana [Sat, 16 Nov 2019 15:09:05 +0000 (20:39 +0530)]
Edit also flushes selection
Arun Prakash Jana [Sat, 16 Nov 2019 14:40:03 +0000 (20:10 +0530)]
Do not check for events when selecting files
Arun Prakash Jana [Sat, 16 Nov 2019 08:36:38 +0000 (14:06 +0530)]
Use small letters
Arun Prakash Jana [Sat, 16 Nov 2019 05:56:19 +0000 (11:26 +0530)]
Update docs
Arun Prakash Jana [Sat, 16 Nov 2019 05:52:34 +0000 (11:22 +0530)]
Plugin treeview to show tree o/p with perms and size
Arun Prakash Jana [Sat, 16 Nov 2019 05:06:39 +0000 (10:36 +0530)]
Plugin extoggle to toggle executable status
Arun Prakash Jana [Sat, 16 Nov 2019 01:50:18 +0000 (07:20 +0530)]
Simplify running commands
Arun Prakash Jana [Fri, 15 Nov 2019 17:06:37 +0000 (22:36 +0530)]
Fix issue with running plugin when help screen is shown
0xACE [Fri, 15 Nov 2019 16:27:37 +0000 (16:27 +0000)]
Fix dragdrop not working in selection mode (#382)
xargs couldn't call function `dnd()` and I couldn't find a portable way
to do it, so I replaced it with a variable which I guess should work
fine.
Arun Prakash Jana [Fri, 15 Nov 2019 16:25:18 +0000 (21:55 +0530)]
Fix #381
Arun Prakash Jana [Wed, 13 Nov 2019 21:25:05 +0000 (02:55 +0530)]
Refactor plugin handling
Arun Prakash Jana [Tue, 12 Nov 2019 14:00:56 +0000 (19:30 +0530)]
Add CentOS 8.0, Fedora 31
Arun Prakash Jana [Mon, 11 Nov 2019 21:31:53 +0000 (03:01 +0530)]
Update docs
Arun Prakash Jana [Mon, 11 Nov 2019 16:13:56 +0000 (21:43 +0530)]
Fix segfault
Arun Prakash Jana [Fri, 8 Nov 2019 22:17:49 +0000 (03:47 +0530)]
Fix #379
Arun Prakash Jana [Fri, 8 Nov 2019 21:22:44 +0000 (02:52 +0530)]
Fix fzcd not working from other contexts
Arun Prakash Jana [Fri, 8 Nov 2019 13:45:53 +0000 (19:15 +0530)]
Incorporate PR #368
Arun Prakash Jana [Wed, 6 Nov 2019 10:56:49 +0000 (16:26 +0530)]
Update docs
Arun Prakash Jana [Tue, 5 Nov 2019 16:35:49 +0000 (22:05 +0530)]
Removal of current dir can be a pain without force
Arun Prakash Jana [Tue, 5 Nov 2019 14:33:12 +0000 (20:03 +0530)]
Clear buffer for no locale compilation
Arun Prakash Jana [Tue, 5 Nov 2019 14:22:07 +0000 (19:52 +0530)]
Make bulk delete more verbose
Arun Prakash Jana [Mon, 4 Nov 2019 21:15:03 +0000 (02:45 +0530)]
Add Wayland clipboard example
0xACE [Mon, 4 Nov 2019 02:42:00 +0000 (03:42 +0100)]
Fix dragdrop stderr causing issues (#374)
For w/e reason the output from `which` causes problems with nnn
rendering. This commit silences the problematic lines.
Arun Prakash Jana [Sat, 2 Nov 2019 16:20:26 +0000 (21:50 +0530)]
Fix #373
Arun Prakash Jana [Sat, 2 Nov 2019 15:16:50 +0000 (20:46 +0530)]
Update docs
Arun Prakash Jana [Sat, 2 Nov 2019 02:21:45 +0000 (07:51 +0530)]
Print improvements
Arun Prakash Jana [Sat, 2 Nov 2019 01:26:34 +0000 (06:56 +0530)]
Update drag and drop plugin
0xACE [Sat, 2 Nov 2019 01:24:14 +0000 (02:24 +0100)]
Merged drag and drop scripts to 1 file (#372)
Arun Prakash Jana [Fri, 1 Nov 2019 16:24:31 +0000 (21:54 +0530)]
plugin pskill
Anna Arad [Fri, 1 Nov 2019 15:58:32 +0000 (17:58 +0200)]
Fix bad getplugs script (#370) (#371)
Arun Prakash Jana [Fri, 1 Nov 2019 14:08:41 +0000 (19:38 +0530)]
Update version to 2.7
Arun Prakash Jana [Fri, 1 Nov 2019 10:44:24 +0000 (16:14 +0530)]
Fix build break
Arun Prakash Jana [Fri, 1 Nov 2019 09:58:13 +0000 (15:28 +0530)]
Show size of file in bytes in status bar in du mode
Arun Prakash Jana [Thu, 31 Oct 2019 21:04:06 +0000 (02:34 +0530)]
Print version in debug output
Arun Prakash Jana [Thu, 31 Oct 2019 20:58:25 +0000 (02:28 +0530)]
Fix #369: calculate checksum for directory tree
Arun Prakash Jana [Wed, 30 Oct 2019 17:13:22 +0000 (22:43 +0530)]
Use macro for 512B sector size
Arun Prakash Jana [Wed, 30 Oct 2019 14:47:31 +0000 (20:17 +0530)]
Fix opening files from browser
Arun Prakash Jana [Fri, 25 Oct 2019 02:20:54 +0000 (07:50 +0530)]
Add complete audio conversion tip
Arun Prakash Jana [Thu, 24 Oct 2019 13:24:33 +0000 (18:54 +0530)]
Do not pass path to commands
Arun Prakash Jana [Thu, 24 Oct 2019 07:18:12 +0000 (12:48 +0530)]
Update docs
Arun Prakash Jana [Thu, 24 Oct 2019 07:09:31 +0000 (12:39 +0530)]
Extend plugin mechanism to arbitrary commands
Arun Prakash Jana [Thu, 24 Oct 2019 06:23:34 +0000 (11:53 +0530)]
Minor reformat
Arun Prakash Jana [Thu, 24 Oct 2019 03:17:45 +0000 (08:47 +0530)]
Fix KEY_RESIZE loop
Arun Prakash Jana [Thu, 24 Oct 2019 03:14:36 +0000 (08:44 +0530)]
Fix checkpatch warnings
Arun Prakash Jana [Thu, 24 Oct 2019 01:26:15 +0000 (06:56 +0530)]
Update docs
Anna Arad [Wed, 23 Oct 2019 14:58:08 +0000 (17:58 +0300)]
Fix Fish autocomplete suggestions for sessions
Anna Arad [Wed, 23 Oct 2019 13:55:57 +0000 (16:55 +0300)]
Fix code examples in plugins README
Anna Arad [Wed, 23 Oct 2019 10:04:12 +0000 (13:04 +0300)]
Implement plugins control of nnn + plugins (#364)
* Implement plugins control of nnn + plugins
* Refactor plugins control code and fix getplugs to recognize hidden files
* Fix bug when going to dir on non-current context from plugin
* Fix some plugins to work on openbsd and freebsd
* Renamings
* Switch to -R flag in cp instead of -r; BSDs complain
* Change braces of function location
* Rewrite plugin creation in README and add new plugins to the table
* Update the fzcd script to include fzy or fzf
* Change plugin name resolve-link-dir -> lncd
* Fixing plugins README table
* Remove some cd plugins but add them as examples to plugins README
Arun Prakash Jana [Mon, 21 Oct 2019 14:43:52 +0000 (20:13 +0530)]
Remove special characters from help
Arun Prakash Jana [Mon, 21 Oct 2019 01:25:19 +0000 (06:55 +0530)]
Change spaces to tab
Arun Prakash Jana [Sun, 20 Oct 2019 14:11:55 +0000 (19:41 +0530)]
Fix #366: update docs
Arun Prakash Jana [Sun, 20 Oct 2019 14:07:35 +0000 (19:37 +0530)]
Fix #366
Arun Prakash Jana [Sun, 20 Oct 2019 13:49:25 +0000 (19:19 +0530)]
Refactor fixes
Arun Prakash Jana [Sun, 20 Oct 2019 00:05:41 +0000 (05:35 +0530)]
Refactor
Arun Prakash Jana [Sat, 19 Oct 2019 07:55:50 +0000 (13:25 +0530)]
Refactor cp, mv, cp-mv as, rm
Arun Prakash Jana [Sat, 19 Oct 2019 03:31:23 +0000 (09:01 +0530)]
Refactor screen move
Arun Prakash Jana [Sat, 19 Oct 2019 03:13:32 +0000 (08:43 +0530)]
Refactor current directory removal
Arun Prakash Jana [Sat, 19 Oct 2019 01:30:04 +0000 (07:00 +0530)]
Clean up plugin handling code
Arun Prakash Jana [Fri, 18 Oct 2019 23:44:18 +0000 (05:14 +0530)]
Update docs
Arun Prakash Jana [Fri, 18 Oct 2019 22:31:46 +0000 (04:01 +0530)]
Update docs on session
Anna Arad [Fri, 18 Oct 2019 22:11:39 +0000 (01:11 +0300)]
Implementing sessions support (#360)
* Initial commit of sessions implementation
* Reduce code duplication
* Move load session to program flag -e
* Fix context initialization problem when loading session
* Add pinned directory to session and reduce session file size
* Make load_session print an error if exists and few minor adjustments
* Refactor session's file structure
* Initialize required structures in load_session before loading
* Add load session dynamically, restore last session, and extra fixes
* Fix indentation
* Add sessions documentation to man page
* Update fish completions with sessions and make some improvements
* Move to single keybinding session management and add help info
* ESC when asked to insert session name behaves better
* Add sessions completion for bash
* Remove pinned dir from session and minor code refactors
Arun Prakash Jana [Thu, 17 Oct 2019 18:05:49 +0000 (23:35 +0530)]
Use a single keybind for cp/mv as
Arun Prakash Jana [Wed, 16 Oct 2019 02:59:49 +0000 (08:29 +0530)]
Combine related cases together
Sijmen J. Mulder [Wed, 16 Oct 2019 01:37:45 +0000 (03:37 +0200)]
Fix build (and more) on SmartOS (#363)
* Define _XOPEN_SOURCE_EXTENDED on SmartOS
Enables wide ncurses.
* SmartOS has alloca() in alloca.h
* SmartOS does not have sig_t
* dprintf() is not available on SmartOS
So replace its usage with fprintf.
* SmartOS has no d_type
* SmartOS has no CLOCK_MONOTONIC_RAW
* SmartOS has no O_DIRECTORY
* Work around SmartOS not having mime detection
* Missing comma
Sijmen J. Mulder [Wed, 16 Oct 2019 01:31:19 +0000 (03:31 +0200)]
Fix strftime() buffer overflow (#362)
If the formatted string is longer than 17 characters the string won't
be null terminated, causing gibberish to be printed on the status line
and possibly worse.
This occurs with my current locale in which a date is printed as such:
2019-okt.-15 19:26
Which is 18 characters.
Arun Prakash Jana [Tue, 15 Oct 2019 00:45:32 +0000 (06:15 +0530)]
Simplify functions
Arun Prakash Jana [Tue, 15 Oct 2019 00:26:34 +0000 (05:56 +0530)]
Minor reformat
Arun Prakash Jana [Mon, 14 Oct 2019 22:47:12 +0000 (04:17 +0530)]
Improve readibility
Arun Prakash Jana [Mon, 14 Oct 2019 22:17:57 +0000 (03:47 +0530)]
Minor refactor
Arun Prakash Jana [Mon, 14 Oct 2019 17:15:19 +0000 (22:45 +0530)]
Add function to count newlines in file
Arun Prakash Jana [Mon, 14 Oct 2019 16:38:07 +0000 (22:08 +0530)]
Fix build break on macOS
KlzXS [Mon, 14 Oct 2019 16:36:45 +0000 (18:36 +0200)]
Added copy/move-as (copy/move and rename) (#356)
* Added copy/move-as (copy/move and rename)
* Little refactorings
* Also handle selection file for cpmv_rename()
Arun Prakash Jana [Mon, 14 Oct 2019 12:28:16 +0000 (17:58 +0530)]
Use a macro for readability
0xACE [Mon, 14 Oct 2019 12:25:04 +0000 (14:25 +0200)]
Mouseclicks are no longer delayed (#353)
This patch changes the mouseinterval to 0. And handles detection of
doubleclicking events internally.
This allows much faster response times for mouse clicks as nnn no longer
has to wait for ncurses to confirm what type of click it was.
It introduces a new config setting for changing how many milliseconds it
may take for a double click to be registered.
Anna Arad [Mon, 14 Oct 2019 01:06:11 +0000 (04:06 +0300)]
suedit plugin (#359)
0xACE [Sun, 13 Oct 2019 15:23:32 +0000 (17:23 +0200)]
unmount() ask for target if not found (#358)
* unmount() ask for target if not found
unmount() now properly asks for which target to unmount if it cannot
automatically deduce which folder to unmount.
* no more automatic unmounts outside of cfgdir