-
-
Notifications
You must be signed in to change notification settings - Fork 761
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 #1292
Comments
Is it possible to save nnn session automatically without Also would like the option of Would be nice to be able to "redraw" a filtered list. How does nnn decide which context to focus after closing a context? Did a quick test and it seems it doesn't focus on n-1 context (closing 4th context focuses on 1st one despite 2nd/3rd opened) nor does it focus on most most previous context. The latter or n-1 context is preferable. |
Does the following patch help? diff --git a/src/nnn.c b/src/nnn.c
index 8673207..df059b9 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -6715,7 +6715,7 @@ begin:
nochange:
/* Exit if parent has exited */
if (getppid() == 1)
- _exit(EXIT_FAILURE);
+ return EXIT_FAILURE;
/* If CWD is deleted or moved or perms changed, find an accessible parent */
if (chdir(path) == -1)
This is an ambiguous behaviour. Some user may be working with only 1 context and she may want to save the context when she exits. The current behaviour is exactly as advertised and will not be changed.
Why? If you have lost the filtered listing, you can apply the last filter again by pressing ^U at the filter prompt.
Currently it focuses on the next active context by number. We can change the behaviour to focus on the previous active context by number. We don't track the history of context usage. |
Implemented at commit 23b54ba. |
Just tested, doesn't seem to work (applying patch directly didn't work for me, I had to generate same patch manually (maybe tabs/spaces issue?).
Oh yea, not suggesting the current behavior to change as it's simple/intuitive, just wish for an additional option for the behavior described.
Didn't realize this (^L), nice.
Works great. |
If this doesn't work then I don't know how to do that.
We can't keep adding options for everything. Thanks! |
In batch rename, deleting line of filename |
@KlzXS I think it's a fair request to trash when defined. Can you please take a look? |
Is it possible to make nnn sort by 'creation time'? As far as I know, it only supports sorting by modification time, and it will be good if nnn supported sorting by creation time as well. |
I don't think there's a single reliable way to get it yet. |
Hmm, I have not tried the When I tried to find other file browsers that do support such a feature, I found ranger does. However ranger is like HUGE so you may not want to implement the feature if you think it will require too much code. |
No, we don't want to implement filesystem-specific hacks in |
I only found out because when I press If I run nnn without options, I am not able to reproduce the above behavior-- |
There's no ^I, looks like you are talking about ^N. |
I am aware of ^N and its correct behavior is different than ^I I'm experiencing. If ^I is supposed to do nothing, then I will file a bug when I have the time. I also found ^5 has the behavior of ! (go to shell) that's not documented, so that might be related. |
^I or ^5 codes duplicating other codes is not an |
I noticed when I use |
@replica9000 either upgrade to the latest tree version or compile nnn from master. #1291 |
@N-R-K Thanks for the info. I've already compiled |
Most terminals send the same character for Tab and ^I, see for example here for more info. I don't know about ^5, but I suspect it will be something similar. |
One small patch I always apply, please consider including it: diff --git a/src/nnn.c b/src/nnn.c
index 878e15d8..2fcee449 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1454,7 +1454,7 @@ static char confirm_force(bool selection)
int r = get_input(str);
- if (r == ESC)
+ if (r == ESC || r == 'n' || r == 'N')
return '\0'; /* cancel */
if (r == 'y' || r == 'Y')
return 'f'; /* forceful for rm */ "n" is more convenient than ESC for touch-typists and I press "x" over wrong file quite often ;). |
Pushed at commit d38841d. |
I noticed that due to CWD notifications (OSC 7) is not escaped for URL, the terminal parses some paths (e.g. I saw the previous discussion If it is not worthwhile to implement the full url encoder (all except Thank you. (Recently kitty terminal added support for OSC 7 and I'm testing the functionality.) |
No plans. Thanks! |
Non-blocking actions (requested in #1328) are sometimes useful and can be easily done if you use tmux - I have custom plugin (based on rsynccp) for copying huge files ( My first idea was using named plugins (like |
Feature request: In #899 I asked about being able to automatically close nnn when a file was opened. Back then I was suggested to use the file picker option which is what I have been doing since then. However there is one thing that doesn't seem to work in "file picker mode": copying/moving files. In other words, if I run "nnn -p -" I can not select with "space" and then copy/move with "y","v" because the selection is always empty (I guess this happens because un "file picker mode" the selection is used to decide what to print when "nnn" exists). So... would it be possible for "copy"/"move" to work while in "file picker mode"? And, if not, maybe it is worth to reevaluate the patch in #899 that closes "nnn" after openin a file in "normal mode"? Thanks! |
That's weird, I can copy/move files inside Trying it out, I can reproduce this with |
Sorry, I don't want to complicate this. Also, did you notice that pressing |
Sure, no problem. I can use PS: Just one final note as maybe my previous explanation was worded in a confusing manner: Right now there is a small inconsistency in that |
Is there a reason why QSORT is not the default and will it ever be? |
No reason other than it came later. There is no definitive proof that it is faster in all scenarios and if you are interested in it probably you also know how to compile |
Has anyone successfully used nnn as a file picker for VS Code? I skimmed the VS Code docs and searched the internet but couldn't find any info. I realize it's not the right place for this (so sorry for the noise, but I figured it might be easier to get help here). |
Following the example from the README,
and then pressing a key will show an empty output. Any ideas? |
@raj-magesh VS Code is a GUI tool. You might have some luck with the documentation here: https://github.com/jarun/nnn/wiki/Advanced-use-cases#browser-integration however, I haven't come across anyone who has tried it before. Do let us know if you are able to achieve that. @rieje which version of |
Latest version 4.4. Yes, mediainfo works directly on file. I don't know if it has anything to do with it but the output of mediainfo is long and the |
Sorry, I'm unable to reproduce this. |
Hello! Thanks for the amazing tool. This link from the wiki states that: "The prompts (except the filter prompt) support readline-like command-line shortcuts. Enter or ^D at the empty prompt (except the filter prompt) exits the prompt. Is there some reason to this behavior? I'd personally like to type a substring, have Enter exit the command prompt and then select the file of interest. Though I tried, I still haven't managed to get the desired behavior by changing the bindings in the source code yet. I would really appreciate if someone could give me a hint on how to achieve this or point me to a fork that does that. |
@gavieira I think you'll need to look into the |
Rolled from #1219.
Cooking
-i
) enabled@
to a single file (Create symlink@
to selection fails #1345)xargs
flags on macOS ([rsynccp] Illegal option on macOS #1299)openall
to open selected files together (Open all files selected #1333)gitroot
to jump to git root directory from a subtreegsconnect
to send the selected files to Android using gsconnectpreview-tui
- fix gif conversion and whitespace namepreview-tui
- add support for windows terminal splitpreview-tui
- djvu file previewsnuke
- add support forimv
when named imvgsconnect
- support connection to multiple devicesNNN_INCLUDE_HIDDEN
to plugins (Detecting whether hidden files are active when running a plugin #1308)NNN_TRASH
in.nmv
(Respect NNN_TRASH in .nmv #1306)SED
>
to point at current entry in detail modeO_NOSORT
to load directories unsorted on entryUp for grabs
None open at the time.
For anything else please discuss in this thread.
Contribution guideline.
The text was updated successfully, but these errors were encountered: