-
-
Notifications
You must be signed in to change notification settings - Fork 760
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 #1193
Comments
Any chance you'll end up including some way to remember the hover position within a child directory? If I'm hovered over dir1/dir2/file1 inside dir2, jump out to dir1, and then back into dir2, I should end up hovered over file1 instead of at the top of dir2. |
Sorry, no plans to memorize as it's very use-case specific. Also, it makes nav-to-type mode management extremely complex. |
Nnn is so perfect that I actually had to fanboy-google the author. I very (very) rarely do that - last one I googled was Fabrice Bellard, years ago. The best todo is to cherish and keep this rare combination of power, simplicity and clear vision. These days it's so rare (sadly) it feels almost magical. I see 3 areas of possible long-term improvements:
Keep being cool! |
Thanks for the compliment! Regarding your notes:
|
Commit 24b71bc takes care auto-proceed and pick on Enter. @luukvbaal please take a note for nnn.nvim. Note that we still support |
I suggested to increase / ease OS support as I only want more people to enjoy nnn - benefiting both them and you. Some have to use Windows not because they love it. But this is of a low priority - just global plans for the future to make things as easy as possibru if you have time for it. By 7z wrapper I meant maybe some non-archivemount, alternative way to transparently access archives. Suggested it because I often forget I can't use fuse on Termux without root, and instinctively press P.S. I just want to make it clear that I highly respect @luukvbaal, and that those minor imperfections I mentioned in no way preventing me and everyone else from using and loving his hard work every day. I'm simply glad it will get more awesome. |
On Linux you can install p7zip-full, override |
Yes, that's what I use. But a transparent in-nnn access via 7z (or other) would be way cooler, I think. But it's up to you, and of course is not essential or priority. I'm trying my best, man... You shouldn't have written such a perfect piece of software that it's so hard to add something to a todo list. No one to blame here but you 😄. |
You mean you want to open it by default using 7z? That's not possible because many archive formats are not supported by 7z also e.g. rar. We wouldn't hard-code more utilities for archive handling. Already we do that for bsdtar, tar and patool which are more of less generic. |
7z supports rar reading (edited). Its format support is extremely wide. Igor really made a swiss knife of archiving - I doubt anyone can name a practically used format it does not support - that's why I suggested it as an all-in-one optional archive handler. Thought - if it's just one single entry point & logic for everything - why not. It shares the same ideology as nnn - small & powerful. Not insisting though, just something for you to consider for later. |
|
Yep, rar is read-only, I've edited right after posting. But firstly rar is closed source commercial (and rather rare usage-wise last ~10 years due to 7z rise), plus reading is better than nothing. It's basically one single edge case. Not pushing it, just trying to evaluate pro and contra. Well, just keep it in the back of your head then, maybe one day you'd want it. |
Can you explain what you mean by this if the issues are still present and/or open issues on nnn.nvim? First issue might have been fixed by luukvbaal/nnn.nvim#6? |
@luukvbaal - sometimes (rarely) the window is empty, need to close & re-open. I did not submit the issue as I cannot find any logical correlations yet (due to the rarity), and was afraid to waste your time. Same for the 2nd. I'll submit if I find more useful info for you. The clicking issue you can ignore if you are busy - as most vim people don't usually even use mouse. But on Termux it's sometimes easier to touch. Most floating windows plugins (e.g. Telescope etc) process touches correctly, but nnn traps the cursor (as it's a terminal) - and you cannot exit unless None of those are critical, and I love you. Nvim + nnn + your plugin is a dream combo. I was simply glad to see it on this list - as opposed to forgotten. My remarks were clumsy, and came out way more snarky than it was in my head. Even added a P.S. in the next post when I re-read it and blushed. Just do your things. You guys know what you are doing. |
Alright, thanks for the kind words. I'm not sure about mouse behavior either, although pressing i (to go back to insert mode) should be sufficient to get out of the trapped state. There is no need to According
I'm positive this worked properly at one point in The thing is that I can't find any commit where mouse events are being forwarded now, has this ever worked properly for anyone in I agree it isn't the most important but if is supposed to work according the the docs I would like to have it work. |
Wrote But this is not important, only if you are in a Sherlock Holmes mood. |
It turns out running tmux inside the terminal buffers makes mouse support working on my setup lol. So changing |
Wonder why this is necessary, I usually use |
Err. I am running tmux though. |
Running neovim inside I suppose this results in some sort of nested tmux session if you're already running tmux outside of Edit: haven't tested termux. |
Ah. Anyway I already feel guilty for bothering you. Just maybe put it into a low priority and do your things, this is not really important. |
Same here on vim. |
I'm not sure, I see the same behavior with |
Ahh, forgot about htop. Yes same here. I guess |
I'm not sure why one terminal application works and the other doesn't. Imo this should be agnostic the the terminal applications and instead just work if mouse events work outside of the vim terminal if events are properly forward as claimed by the docs. No idea though. |
Looked into the diff --git a/src/nnn.c b/src/nnn.c
index 8499489..ac1b802 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2079,6 +2079,8 @@ static bool initcurses(void *oldmask)
//intrflush(stdscr, FALSE);
keypad(stdscr, TRUE);
#ifndef NOMOUSE
+ printf("\x1b[?1000h\n"); /* xterm X10 mouse mode */
+ printf("\x1b[?1006h\n"); /* extended SGR mouse mode */
#if NCURSES_MOUSE_VERSION <= 1
mousemask(BUTTON1_PRESSED | BUTTON1_DOUBLE_CLICKED | BUTTON2_PRESSED | BUTTON3_PRESSED,
(mmask_t *)oldmask); I have no clue how it works, or what it's doing though 😄 P.S |
That might be it. I do have |
Like I said, chromium will not use your custom |
GOT IT. It seems like also having |
I see, but are you now actually able to use |
Well, yes in the sense that |
Well like @N-R-K said, the python script you linked just writes to stdout which is what |
Guys, when you are done, probably update the Wiki with the steps. |
Some weird shenanigan is going on. The following works for me. #!/bin/sh
pick() {
st -e nnn -p /tmp/pick
cat /tmp/pick
}
pick |
I guess you need to write to stdout of the script itself and somehow invoking This also works btw: #!/bin/sh
tmp="${TMPDIR:-/tmp}/nnn_pick"
pick() {
st -e nnn -p "$tmp"
}
pick && cat "$tmp" |
Perfect. Uploading files works just fine. Now it might be worth ironing out / making sense of the other direction (Save As...) in this way. |
I checked /proc/$$/fd of the
It writes to the pipe that is used by chromium I presume. Indeed some parts of the original script you posted are required to distinguish between upload and save as, I could check it out tomorrow. |
This works for upload, save to folder with filename from chromium(select and quit) and save to new file created in nnn(select with enter or select and quit).
Added some sh -c and quote shenanigans along the way, I'll check if any of those can be avoided tomorrow and add it to the wiki. Edit: used Unfortunately this broke my current solution for chromium "show in folder" with nnn. I guess |
@luukvbaal please add the details to wiki. ;) also does this work with my browser, firefox? ;) |
Afaik firefox needs some other var |
Thanks! |
Also not sure why and how to fix the "Show in folder" button stops using Guess we need to know what chromium is trying to open with |
Thank you! Don't worry about Firefox. Someone willing to try it out will show up someday. 👍 |
I can't figure out what's going on with firefox either. Which is unfortunate, because I'm using it as my primary browser where this feature would be pretty useful. If I do figure it out, I'll update the wiki and give a ping. |
It seems like Tried looking through chromium source but haven't found yet what it's trying to do instead... |
The issue lies in Creating a Edit: added instructions here. |
Strangely enough, even opening any file through |
Well now that the wrapper scripts are set up and everything is going according to plan, the only minor annoyance is that the |
Yep The issue to me seems that
The gnome case has an Perhaps using a different |
Hmm that is annoying, I see it too. |
Chromium asks for the version of while :; do case $1 in
--getsavefilename) file="$2" break ;;
--version) printf ""; exit ;;
--*) shift ;;
*) break ;;
esac done fixes the issue. |
Rolled at #1219. |
Rolled from #1133.
Cooking
%j
and%J
fzopen
when used to pick files-F
flag)-w
: always place HW cursor on current entry-i
to show current file information in info bar-a
(Fix preview-tui without -a #1208)Up 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: