-
-
Notifications
You must be signed in to change notification settings - Fork 762
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 #386
Comments
Hey, I think i encountered the appear in commit: f80563e as I was on the run, I didn't have time to note which commit i was on when it happened, and since then I have rebased on master... I tried reproducing it though and I can't anymore, so I'm not sure if that build was spooked somehow... |
I think it's fixed in master. Please try a few more times with the release. |
I tried again, it happened again. I'm not exactly sure how to reproduce it. I can't reproduce it in a "testing" scenario, the problem appears when I'm using |
I am not sure how this helps. We had days to test this before the release and I did call out to all of you to pitch in. Your natural usage is not helping me to reproduce this. |
@0xACE any luck yet? Please confirm you are on master. |
Yes, even I am not seeing this. |
@0xACE I also took a look at master source to track if we are clearing |
I did try it out in my limited time, and I don't recall that I encountered it
Yeah, atm I don't have a way to describe it because I don't understand it myself.
Yes I am on master.
No need to push yourselves, I haven't confirmed it myself, I was mostly wondering if someone else is encountering this issue.
Yeah, I haven't looked at the code yet. As I don't know how to reproduce it, I'm just gauging if someone else has this problem. I'll let you know next time I encounter the problem. For now there is not much I can do about it... One thing both occurances had in common was that I selected a folder for a that was being downloaded via |
I'll try this. |
And no luck! I've made the minor release already. If it's really an issue we will surely get user reports and we can fix it when we have some more concrete data. |
Happened again, this time there were no torrents involved. I'm disabling all my personal patches just incase this problem is caused by my changes. I'll let you know next time... Btw is it important to |
Not for flush, not really. Because of your use case, I made the flush to .selection file auto. But yes, it's required to edit. |
@maximbaz can you check if there's any way to reduce the binary size further? For me it is 62.1 K now. I would love to bring it below 60 K. |
I'll have a look, out of curiosity, can you share the full command that you use to compile? If I run
If I run
|
here's what I see on Ubuntu 18.04, amd64:
|
@annagrram shall we remove the "@" session after we restore it? I think currently it's not happening. I don't remember if we talked about this during implementation. |
We haven't talked about it, but yeah. Sure |
I have checked-in the change already at commit cf38864. Please review once. |
Just a quickie: I tried opening a file which had a |
which application did you try to open it with? |
a personal tool i made. But nvm, I can't reproduce the error anymore. I thought maybe i misspelled my tool, but looking at the history, i did write it in correctly. Anyhow, since I can't reproduce it, it's most likely a user error on my end and not |
On the other hand is anybody experiencing "swallowing of input", i.e. after |
please don't do this. It will mess up your terminal. Open a CLI program as cli and GUI program as gui. I don't think we will be able to support the inter-mixing with any kind of hacks. We can't detect ourselves whether a executable is GUI or CLI. Is the tool a cli-only opener? or does it invoke a gui program? |
This time I did it on accident but I think this also happens sometimes with some files when it doesn't know with what to open it. At least it did in the past. Just by using |
What's your opener? If it's a text file do you have |
@awsdert a visual/textual example please. |
I see peops mentioning about filters, just use regular expressions, example way to create it would be nnn --reg /bin/* |
@joron, you'll have to wait for me to get back from work, only just started so can't focus on phone or think through an example |
I think you are talking about visual changes in the listing. No plans to change the current listing style as it will affect areas like navigation, drawing etc. |
I actually thought this was a command lone utility like gcc, anyways I imagine your drawing function begins & ends with something like glBegin & glEnd, just put those in wrapper functions called FrameOne and FrameEnd and add a new one called FrameNxt and return the correct frame from them, when in grouping mode it just ends the previous and starts a new drawing ctx or whatever and then the main function remains none the wiser |
Well that's not how it's implemented. You can take a look at the code. |
Also this has nothing to do with opengl. This a terminal file manager, we use ncurses (or rather ncursesw if we're being 100% correct). |
I said something LIKE, meaning however your drawing function begins and ends a simple check in the middle is enough to call FrameNxt, also since it really is a command line utility as I thought, why not just use printf?, you only have to add a couple lines midway every now and then, anyways I'll take a look myself when I get the chance, however could someone point me in the right direction? |
@KlzXS resuming the discussion on opening a list of files... how about creating a temporary directory with softlinks to the list of files? All our issues would be gone. The user knows what he is doing and the file details will show the actual target. Update: before you quit, simply remove the tmp directory. |
@awsdert the drawing is done in redraw(). For navigation search "SEL_NEXT". |
because ncursesw is lean and provides features like mouse handling, resizing, coloring etc. without having to worry about tty details. We are not interested in rebuilding the wheel here. |
Well that would mean you couldn't remove or rename files unless we implement special logic for it. Also it seems a bit wasteful to create all these links. Do you actually know if creating a bunch of links at once is a performance issue? |
You will know when you are in this mode. So we will always use the target file (readlink()) for these operations.
We will remove these when we quit. No it's not a performance problem. We already support softlink creation to selected files in bunch in |
And trust me, this is much better than storing every path and manipulating it wherever we access |
A little feedback on filtering (in particular with regexes): Most of the time the "standard" case-insensitive substring search is exactly what I want. But sometimes I would like to search case-sensitive - this applies to both substring-search and regexes. At the moment everything is case-insensitve all the time with no way to change that. Sometimes I want to filter based on a regex and then I have to restart nnn as I have to decide before I start nnn wether or not to use regexes. I would prefer a way where I could switch between substring-search and regex-matching without having to restart. Sometimes it takes me a few tries to get the regex right. It would be extremely helpful if nnn would remember a few searches/patterns (or at least one) and would allow you to recall them (like eg vim does) so you could filter iteratively without having to type everything again. I assume you want to stay as POSIXy as possible, but Perl compatible regexes are both more powerful and more convenient (and I am used to them). Just compare "\d" vs "[[:digit:]]". |
It stays as it is. Most users wouldn't bother remembering the case in a filename.
That would mean another keybind... not happening. Close and open.
vim is not a great piece of software when it comes to memory management. I use
We just link to a standard C library (maybe glibc in your case) and it provides what you see. Can't add a new lib dep for this. |
If you really want this, add the code within a macro and add a new Makefile target to compile with the PCRE library. |
Hey guys, just quickly dropping by to report a small issue with reverse sort (
Actual: List is not reversed, but status bar shows P.S. Wow this is a long thread! 😄 |
I guess we can have key which when pressed in empty prompt switches between regex and string. What should the keybind be?
And what should this keypress be? |
@ghistes I think I have probable ways for all your requests:
Maybe we can detect and enable case-sensitive matches when there's a capital in the string.
Suggest a keybind at empty prompt to do that.
I think we can remember the last filter within the filter itself and show it at a particular keypress if the filter is empty. Suggest a keypress.
If you really want this, add the code within a macro and add a new Makefile target to compile with the PCRE library. @maximbaz would you like to try this? |
I have added line items for all of these. |
For the filter keybinds. Use up arrow for previous, it's intuitive. Maybe use the left and right arrows to switch between regex and substring and maybe put something like |
Currently the arrows work as they should in non-filter mode. Can't change the behaviour. Need control-codes. |
Rolled at #427. |
Rolled from #337.
For next release
NNN_ARCHIVE
)nuke
: sample opener (CLI-only by default).cbcp
: copy selection to system clipboard.ntfy
: show notis on cp, mv, rm completionautojump
: navigate using autojumpupload
(previouslytransfer
), uses https://file.io-
to skip dir refresh after running (cmd as) plugin*
to skip confirmation after running cmd as pluginfzf
andfzy
*
-f
to run filter as prompt on prompt key (can be disruptive)-x
: enable notis and copy selection to system clipboard-g
: regex filters (substring filter is default now)-Q
: quit program without confirmation-s
: load session (earlier-e
)-n
: start in nav-as-you-type mode (earlier-i
)-v
: version sort (earlier-n
)-V
: show program version (earlier-v
)-A
: disable dir auto-select (earlier-t
)getplugs
to install hidden filesstat()
on target failsdirent.d_type
)Proposed features and tasks (up for grabs)
nnn.vim
plugin to show a persistent bar (Support vim popup mcchrish/nnn.vim#46)nnn
pluginsAnything else which would add value (please discuss in this thread).
List of completed features and tasks.
The text was updated successfully, but these errors were encountered: