-
Notifications
You must be signed in to change notification settings - Fork 42
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
File name not passed to external editor #432
Comments
According to command menu formatting, there's no such thing as |
Isn't this triggered for Sunflower/sunflower/associations.py Line 76 in 9677dda
Using |
What you linked is for general file associations. Executing commands is done from here: Sunflower/sunflower/gui/main_window.py Line 843 in 9677dda
I'll take a look why it's not working for you. |
Interesting, I cloned the repo and put a print statement just below https://github.com/MeanEYE/Sunflower/blob/develop/sunflower/associations.py#L76 i.e. something like:
and the print statement was executed when I F4 over a file, so I thought this is where it goes through. That was on the default
which doesn't seem to have Anyway, let me know if you need anything else to reproduce on your end. It's not a huge deal since it sets the correct cwd, so I can |
This is an issue and bunch of them appeared out of nowhere with migration to Py3 and GTK3. So it needs to be fixed. Thanks I'll let you know when it's time to test. |
I think is now apparently working, see below :-) BTW, how can we create a custom key binding for a new command? Is there any way available? I couldn't find it.
Thanks! |
Thanks for reporting this @ahornero. There's not direct key -> command mapping. There is a shortcut for dropping down commands menu where you should be able to search and execute commands. |
Thanks for letting me know @MeanEYE. And congratulations on this awesome piece of software! |
Thanks. I should probably rework that menu a bit and make it invokeable anywhere. |
I set this:
This launches
vim
, but%F
is not passed. Looking at the code:Sunflower/sunflower/associations.py
Line 267 in 9677dda
shell_command
is only the command itself (vim
), whilearguments
is the full command (vim %F
with%F
replaced). This is then sent tocreate_terminal_tab
which uses onlyshell_command
Sunflower/sunflower/gui/main_window.py
Line 1510 in c40b085
I assume you'd want something along the lines of
''.join(options.get('arguments', [])
there, right?The text was updated successfully, but these errors were encountered: