-
-
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 #594
Comments
If you do proceed with additional contexts, please ensure that the feature can be compiled out. I personally do not see the need for more than four. My buddy aka rddit-nix pointed me in the direction of nnn and we both agree that launching a new instance is certainly more effective than tabbing through x contexts or hunting for the correct context number. YMMV. |
Not really a feature request or a bug, but if nnn -a is not closed gracefully (e.g. closed via a TWM or DE key bound to SIGTERM/SIGKILL), it seems as if /tmp will be littered with truncated nnn fifo files. I noticed around 100 such files in /tmp earlier today. While empty, they do constitute a trail of metadata. The proper resolution I suppose is to close gracefully and allow nnn to auto remove the fifos. |
The thing is, we do have that code in place. See @leovilok any ideas? |
Hi @jarun , I appreciate what you do, nnn is awesome and you know it. I'm trying to get to work preview-tui plugin, but all that I see is a quick blink of the screen with no messages. Though I can see that inside of the plugin are some "echos". Is there a way to see them. Or the only thing is troubleshoot this is to mimic the environment of nnn and execute plugin externally? Thanks for the answer in advance. |
Hello,
At the moment the plan is paused, but the intention is to keep
I'm not sure we handle I think that script was reworked the last couple of days. It should look something like this out of the box: Also what do you have |
@jarun, thanks for your reply. Recently I ran I've just launched My alias for nnn is the following:
Most of the code I've got from the wiki, the only thing I've changed is the line: |
@0xACE A graceful |
I spent too much time on another issue so i have to keep my self short here
i think It seems like you haven't read the docs, I can't review your script as im literally standing as im typing this message ready to leave. protip: there is an abundance of documentation see the wiki above.
Maybe we could hook in a |
@0xACE , thanks for your review. I read the docs and I believe that I'm setting I tried to do exactly as docs stated with |
Please use the |
OK, thanks, I guess I need to wait for a release branch as I don't have this flag still. |
It's available on v3.2. Fifo support is also on v3.2. |
Can you raise a PR? |
Guys, thanks for your support, I got 3.2-1 and everything went smoothly well. |
I'm guessing you could wrap |
@d3ni5 from
But I can't find it in the man, so that's an issue. |
@d3ni5 : example
but you need to have no |
@0xACE , I guess I'm not that advanced to catch your idea. Could you please clarify that? how would you wrap it? do you mean |
Thanks, @leovilok , I will try that. But I'm really curious about the approach that @0xACE suggests especially if this flag is not working. |
I guess it stems from the unix philosophy of building one tool that does one job and does that job well, and then supplying an environment where you can adjust it to your needs. Technically I will be over reaching with this explanation but I'm doing it in hope to inspire you. The idea is that linux provides a Earlier in this thread you posted a
into that function. This way you have ensure that your preview script is executed whenever you launch Personally I have my path setup like such:
Say I'm unhappy with You could have a simliar setup for You will have to tinker with it though. Imho bash is so annoying to use I wish there was a better language for it. But I insist on using Regarding Become a master of your own environment. I'll leave the exercise of it as homework for you, if you are interested. Cheers. P.S. I don't use any of those I spent too much time on this now. Good night. |
@d3ni5 the flag works ... just not with NNN_OPTS, but I submitted PR #610 to fix that. About the wrapper method, to complement what @0xACE wrote: You can use NNN_FIFO to write your wrapper preview script, checkout this exemple in the wiki for instance. And remeber that plugins are just scripts so a simple wrapper function would be: n () {
export NNN_FIFO="$(mktemp -u)"
mkfifo $NNN_FIFO
~/.config/nnn/plugins/preview-tui . &
nnn
rm $NNN_FIFO
unset NNN_FIFO
} (@jarun should this go in wiki too?) |
What's this? It's a plugin and should be launched from within |
Thanks @leovilok. And a great thanks to @0xACE for his wide explanation, really inspiring one. I haven't even thought about running plugin script before actually launching |
Still some instances where fifos are truncated in /tmp with nnn -a. I'll try and figure out when and how they become truncated. But instead of 100+ fifos over a daily session, I now have only 4. @jarun
And here is the relevant section in my imgview:
Essentially the same as the defaults 👍 . imv is a simple wrapper script which attempts to launch imv-wayland else imv-x11. Debian removed the imv script due to a naming conflict and hence, Debian users must call the desired executable directly. imv is able to preview hovered directories with imgview (though there is a known issue with unsorted views) and is able to view images according to folder sort within a directory (both imgview and nuke). Hope that helps. Offhand, I am not sure how suckless imv intends to be now having moved to a meson/ninja build system :( |
Thanks for sharing! @leovilok can we integrate @githububub please try master and confirm if FIFO removal works as expected. |
Will do. FYI, I was testing with e47a048 all day today. I'll try the updated master and report back in a day or two. |
That's the relevant commit. In that case can help us figure in which case the FIFO is not deleted? |
I added removal of |
@githubhub do you kill nnn with SIGKILL (kill -9) ? or do you close nnn term just after launching nnn, before it's even started? imv looks nice, but it conflicts with renameutils (imv is an interactive file move/renamer using readline), I'll try it later. |
Absolutely. And thanks for taking care of the pipe as well. As an aisde, advcpmv is interesting. The progress meter flies by fast 100 MB files :)
SIGTERM (kill -15). And the latter situation where nnn terms are closed in rapid SIGTERM succession where multiple instances of a terminal are open (not through a multiplexer) seems to be a case where fifos are left truncated. Will observe over the next couple of days. |
@githububub I can't replicate 😞
Do you have the same result? |
I tried your test and |
I too receive the same results when following the experiment above. When testing under those standard conditions, all is well. There is something else at play here. Perhaps an edge case which we need not be concerned about. I have seven truncated fifos in /tmp over the course of six hours. Again, perhaps an edge case that involves the WM/term/other variables (though logs indicate nothing out of the ordinary). No pipes, only fifos. I will keep an instance of nnn open on the side (watching over as fifos are created and destroyed) while working over the next few days and try to pinpoint what is causing this. |
Reinstate alignment of nodes listed in Batch rename #529. It was implemented for a while, and was very helpful for me, then, before I could give my thanks, the thread was closed, and it was de-implemented. Can it be brought back? |
@harriott it's still there. Can you please confirm your copy of the plugins is the latest? |
Rolled at #629. |
Rolled from #506.
Ready for next release
NNN_FIFO
preview-tui
: various improvementsO_CTX8
for 8 contexts (NOT backward compatible with 4 contexts)Proposed features and tasks (up for grabs)
nnn
pluginsAnything else which would add value (please discuss in this thread).
The text was updated successfully, but these errors were encountered: