-
-
Notifications
You must be signed in to change notification settings - Fork 770
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 and discussion #1454
Comments
I'm not able to clear selection with |
I am unable to reproduce the issue with the same script. Selection is cleared. Files also play is sequence as they should.
|
Just tried both latest stable and master. To be explicit, I am now using Then I press spacebar on some files hovered over, hit |
BTW, please do not use the ToDo list for problem resolution. Raise a defect. |
This is a nice plugin idea. I am considering adding it to the plugin list if i can tweak it to my liking. ;) |
I'm wondering if undo function was considered before. E.g. you moved a file from one place to another, and |
The files modified within the last 5 mins are timestamp-highlighted. So sort by time, select them and move back. Can't waste 40K because of someone's indecision. Also, we support bulk movements. No point remembering 10/20. |
Move is just one example, there could be many in what nnn does: rename, delete, batch rename, copy, etc. |
That's user history. We are not writing a toy app here. |
I don't think this is feasible:
And these are just some of the things which comes to mind, I'm sure there's plenty of other issues lurking in the shadows. |
Configurable macros? |
Scripts? |
Able to use custom merge tool when using |
Hi, it just took me an embarrasingly long amount of time to figure out how to use sshfs to mount a specific remote folder.
|
@N-R-K or @luukvbaal can you please have a look and update the wiki if necessary? |
@greenfoo I have updated the documentation to simplify it for new users. |
Any plan to add a feature to temporarily remembering previous hovered path in the same For example And maybe later I navigate to other file, say And maybe later I navigate to other file, say That means Maybe handy for quick navigate back and forth the parent and child folders when there are a lot of directories. Just a little suggestion, not essential. |
Sorry, no plans. |
any plans for moving copy to a different thread/process/background so it doesn't lock entire program for massive copies? |
No. Open a new instance of |
yes I know how to do basic tasks thanks |
Any plan to implement "persistent" tag to visually mark certain items? Something like this:
Thank you! |
Sorry, no plans to add any kind of tracking in |
Hi, Is there a way to ungroup directories? When sorting directories are always grouped together at top. I want to sort directories and files by modification time but couldn't find a way. |
@sm1999 no there's no way to do that. It's a simple patch in the code though. |
Done. https://github.com/jarun/nnn/wiki/Troubleshooting#running-inside-docker-containers |
When opening files with |
Why not tune your mpv script to expand the argument path using |
Why limit to 20? This is a sample of all the extensions you support. As you can see, many extensions have bad contrast against a light background (there's more but I could only capture so many in the image). Alternatively, instead of supporting per-extension color overrides, we could support only overriding this table. I personally don't care which colors the icons are displayed in, as long as the are visible. |
Well, not too excited by many. |
Hmm looking a bit more into the way colors are handled, looks it's not going to be as simple as overriding the color on the hash-table. There's some curses code involved here which I'm not familiar with. Not sure when I'll get the time to take a crack it this. Feel free to give it a try and open a PR if you're up for it @stellarhoof. |
Which code are you referring to? |
Also, here's a simpler idea - let's just have a "light mode" that can be turned on at compile time. diff --git a/Makefile b/Makefile
index 1393d3ac..03638888 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,7 @@ O_NOUG := 0 # disable user, group name in status bar
O_NOX11 := 0 # disable X11 integration
O_MATCHFLTR := 0 # allow filters without matches
O_NOSORT := 0 # disable sorting entries on dir load
+O_LIGHT := 0 # enable light mode icon colors
# User patches
O_COLEMAK := 0 # change key bindings to colemak compatible layout
@@ -137,6 +138,10 @@ ifeq ($(strip $(O_NOSORT)),1)
CPPFLAGS += -DNOSORT
endif
+ifeq ($(strip $(O_LIGHT)),1)
+ CPPFLAGS += -DICONS_LIGHT_MODE
+endif
+
ifeq ($(shell $(PKG_CONFIG) ncursesw && echo 1),1)
CFLAGS_CURSES ?= $(shell $(PKG_CONFIG) --cflags ncursesw)
LDLIBS_CURSES ?= $(shell $(PKG_CONFIG) --libs ncursesw)
diff --git a/src/icons.h b/src/icons.h
index 5cefe4d3..9a4b7067 100644
--- a/src/icons.h
+++ b/src/icons.h
@@ -133,6 +133,10 @@
* Spectrum sorted: https://upload.wikimedia.org/wikipedia/commons/1/15/Xterm_256color_chart.svg
* Color names: https://www.ditig.com/256-colors-cheat-sheet
*/
+#ifdef ICONS_LIGHT_MODE
+#define COLOR_LIST \
+ /* insert the light mode colors here */
+#else
#define COLOR_LIST \
COLOR_X(COLOR_VIDEO, 45) /* Turquoise2 */ \
COLOR_X(COLOR_VIDEO1, 226) /* Yellow1 */ \
@@ -155,6 +159,7 @@
COLOR_X(COLOR_SHELL, 47) /* SpringGreen2 */ \
COLOR_X(COLOR_VIM, 28) /* Green4 */ \
COLOR_X(COLOR_ELIXIR, 104) /* MediumPurple */ \
+#endif
/* X-Macro: https://en.wikipedia.org/wiki/X_Macro */
#define COLOR_X(N, V) N = (V), @stellarhoof Should be easy for you to pick some colors that look fine against a light background and open a PR. |
Some sort of init color thing going on here: Lines 2167 to 2172 in 92a0158
|
Those are some default colours for pre-mapped types like directories, ruby files etc. Add your code to update the table immediately after that for loop and see. |
The In curses, to use a color, we need to call |
@N-R-K I'm fine with that. @stellarhoof can suggest the colors. |
Having a light mode is too subjective. I can't guarantee the colors I pick will play nice with whatever background other users have set in their terminals. There might also be users with color impairments etc... What about allowing users to override |
It is true that it is subjective. It's a matter of balancing the costs of pros and cons. Using a light vs dark setup allows for a peace of mind in the simplicity of setting up the environment.
It will never work perfectly unless anyone specifically crafts a solution for their specific environment. I would argue it is about creating a general "good enough" case. My recommendation would be try to copy the colours of things from Microsoft Windows Explorer, back in the day they had decent contrast to help describe differences.
There are so many different types of visual impairments that it would be better to specifically compile a solution for each condition. infact I would argue our current default |
If reducing user customization in the name of simplicity is the goal then I believe the best choice is to limit the colors used by nnn to the 0-16 range, as those are controlled by the user. This will also saves us from having to define dark/light defaults since presumably the user has chosen colors with good contrast for their terminal background. |
Isn't this the
No, you would still need to know if the user has a light or dark background. Light and dark do not work with the same colors and it has to do with People say Where the height is the brightness (grayscale), this graph will showcase which colors goes well with dark and light backgrounds. Which is why i complain about our default blue (same argument for red and dark green). In short luminance carries great importance |
The
I agree light and dark do not work with the same colors, I'm not proposing we use the same saturation/luminance (hue can be the same) for both dark and light, I'm just proposing leaving it up to the user. Take the red/green/blue you think should be changed. They look fine on my terminal because I've made sure of it: Notice how the icons are also fine except for cases where they are explicitly overridden by nnn to be a different color So to summarize, I see three different approaches to letting the user control and see what they want (which has always been my goal)
Barring any of those solutions I will be left to patch the source code, which I've been trying to avoid |
We have provided multiple options, you can raise a PR. We really don't have the bandwidth to spend on long discussions on icons and colors. You are welcome to come up with a sensible colorset of light themes. Yes, it will be a compile-time thing but that seems the best option for now. |
A |
Pasting into the same file should work to duplicate it as well |
Hello, the theme currently not working on fish shell, because fish did not follow posix compliant, the provided theme just output error if one set it in fish config. |
@875d
there is no automated way. Only https://github.com/jarun/nnn/tree/master/plugins#installation
What theme? |
That's why I put it in the wishlist |
The ask is to download a file and execute it. In addition, the release package has the plugins. Package maintainers can have it them installed/updated as well. |
@ahloiscreamo if you are using fish shell, you should know how to convert the widely used sh/bash syntax to fish. It's not our responsibility to convert to every other script in the world and present it in a plate to users who don't know what they are using but use them because they sound fancy/adventurous. |
I see, i can do that, just for convenience purposes for other users. |
It takes years to build a tool like this. We no longer have the bandwidth to provide basic support. |
i understand, i appreciate the great work. thanks. |
I appreciate you took it on a positive note. Not too many people do that. Thank you! |
Rolled from #1416.
Cooking
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: