-
-
Notifications
You must be signed in to change notification settings - Fork 748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToDo list #137
Comments
@jarun what do you think of putting the vim plugin to its own repo? It can make installation easier for plugin manager. |
@mcchrish I would be more than happy! Would you be kind enough to maintain it? (I don't see too many changes coming). |
@jarun not well-versed with vimscript but if no one hasn't done it yet I'll take a look. |
@jarun https://github.com/mcchrish/nnn.vim So for vim-plug just: Plug 'mcchrish/nnn.vim' Thanks for the awesome tool! |
Awesome! I am retiring the plugin from my project and linking to yours. ;) |
@jarun Hi! What do you think about having a configuration file? like |
@gabyshev no plans as of now. |
Hi! I was using the latest version, and I'd like to suggest that every time copy/move/list selection is called, nnn read the selected files from ~/.nnncp. Consider this workflow:
|
It works just like that even now. Here's what I tried (with lastest master):
|
The |
Nice! Indeed, it works. What confused me was this different behaviour of |
No problem! |
What about having env var for dir color ? Anyway, default blue doesn't work for me, kinda silly to look at |
@kajzersoze how about using an alias? I do the same. |
@jarun didn't occur to me for some reason, good idea :) patching it is also not a bad idea, I guess what I need is in this line : Okay, thanks. |
No problem! |
First off congrats for this project, I've been test-driving it for the past few hours and looks pretty slick! Coming from graphical file managers (mainly Nautilus), the only thing that seems less efficient and hard to get used to so far is the copy/move/delete actions. Perhaps it's "just" the power of habit but I'd love to be able to have the same UX if possible, at least for the path selection:
For deletion provide two modes:
As for copy and move, I guess I could get used to the different UX - "Copy selection" instead of "Copy and paste" ( |
Please note that
There's a reason a key is kept without
Same reason as above. Multiple combinations are very difficult to use on smaller form factors.
We can have this as an enhancement. |
Interesting point about handhelds, it didn't occur to me this was a use case and didn't see it mentioned in the design considerations. Though I'm not sure I'm reading
correctly; are you saying it's very difficult on handhelds to use the navigate-as-you-type mode? |
From the introduction - It runs on Linux, macOS, BSD, Cygwin, Linux subsystem for Windows and Termux.
yes, and not because of |
Hi, how can I create (symbolic) links for a selection? maybe 's' and 'h' as options in addition to 'f' and 'd' in 'n' prompt? |
@lawnowner this is not a very regular use case. Please use scripts. |
@jarun Roger. Already my fm of choice, well-crafted to the detail--all I could think were link creation and percent-progress for copies. I doubt I'll use another fm, although my contribution may take a while. Thanks. |
Hello @jarun. Sorry if this has been asked before, but are there any plans for adding some bulk rename support (e.g. the one from ranger)? If not, would this be easy to implement with a script? |
vidir is integrated. Please refer to the docs and help. |
@jarun Thanks for pointing it out! Somehow missed it in the readme. |
@jarun Hello, I have just started using nnn. I had some queries, but most imminent for my workflow is customizing the file-opener. I've not used desktop environment for long, and when I did I didn't know anything about xdg-open and mimeopen. And as long as I've used ranger and then vifm, I've had configuration file to configure programs to launch the file in. I know about So, could you point me to some websites to learn configuring xdg-open? |
You don't need to configure. From your DE file manager, right click on a file and set open with. |
But I don't use any DE file manager. I've installed ubuntu minimal version without any DE at all. Don't you think it's not a good idea to have to install a program just to configure file opener? |
On latest master, we have restored the support for |
@lawnowner I found a simple way to do it:
symlink |
@jarun Thanks. That's a good solution among other simple ones, such as a pure shell solution, a script solution, or having any other copier program than ncp 'exported' (assuming it is installed on the system). Although it is my preferred fm, I think that nnn should support link creation natively. |
The problem is there may be too many cases (while file/dir creation are limited to the same parent dir):
So you see, to really provide a complete solution is not a trivial thing in this case. What do you suggest? |
@jarun After making a selection of one or more files/directories and navigating to a destination directory, via the nnn interface, both linking (N/A) and copying/moving (P/V) involve resolving the same cases against duplicates at the destination. Since nnn can copy/move without re-implementing cp/mv utilities, maybe I could suggest treating the linking operation as pseudo-copying. The 'n' prompt could be a good place to interject link creation options, but of course a shortcut like P/V is another option. |
Yes, we use cp. mv, rm here which have their own guards. I didn't want to re-write the logic again. Now, for multiple file selection, we do not call cp, mv, rm again and again. We call them once. But I don't think we can do that for I was also thinking of using lower level APIs for Maybe I am not just so sure yet, which workflow is better. Let me think a bit more. |
More issues, for hardlinks do we ask for linkname each time of use |
@lawnowner I think it's better to go the API way instead of calling binaries. Would it be possible for you to raise the PR? |
Batch link creation is pushed at commit 8ff56d2. |
@jarun Thanks for the new feature! I think the project has got sensible design decisions, such as sticking to XDG standards, optionally via intermediaries like mimeopen to provide simplified interfaces, and maintaining a lean and keen binary. Hopefully, it remains so. |
Latest master also supports links with same name. |
Rolled at #202. |
@gsakkis feedback for selected files will soon be in. |
Rolled from #110.
Ready for next release (master-only)
N
(1 <= N <= 4) to switch to context NNNN_OPENER
to specify file openerNNN_NOTE
and keybind for quick notesDISABLE_FILE_OPEN_ON_NAV
toNNN_RESTRICT_NAV_OPEN
Proposed and completed features
mimeopen
)$EDITOR
,$PAGER
and$SHELL
fore
file removalNNN_USE_EDITOR
is setl
keys)nnn
as a file picker within vimnlay
(no more used bynnn
)$TMPDIR
if availablepatool
get_coolsize()
(thanks @arsv)NNN_NOWAIT
to unblock nnn (DE specific)xdg-open
on Linux andopen(1)
on OS X as desktop openernlay
vlock
as default terminal screensaversupport cd ..... (with . as PWD, stops at /)(feature removed)nlay
- a shell script for actions like open desktop search utility, run screensaverless
support readline at chdir prompt(feature removed)Q
to quit to current dir (needs external shell integration)^Q
to quit (even from filter mode)-
to jump to last directoryresolve(feature removed)~
(HOME) at chdir promptlstat()
details)NNN_COPIER
)Up
andDown
at the first and last entriesshow total number of files in du mode(apparently it has to be counted in nftw callback, with adjustments like file type check, hardlink check, which means unreasonable overhead)threaded/multicore nftw(3)(overkill, we are already very fast)use scandir instead of readdir(we are using custom alphanum sort, see 6912912)modify packagecore.yml and probably Makefile to generate OpenSUSE Leap packageAnything else which would add value (please discuss in this thread)
The text was updated successfully, but these errors were encountered: