Open pawelgalecki opened 4 years ago
Thanks! This is an issue. It seems that only one operator, :
in your case, is being processed and the final ;
to tell dmenu-extended to run the program in the terminal is being ignored.
Ideally, dmenu would detect that vi
is a terminal program automatically and execute as such.
Thank you for the report. I'm not sure when I'll have time to address this but thank you for creating the issue :+1:
I can confirm this issue. My solution was to copy /usr/share/applications/vim.desktop to ~/.local/share/applications/vim.desktop (the user directory is checked first by xdg-open) and edit the Exec line to Exec=alacritty -e vim
.
After running update-desktop-database ~/.local/share/applications
, dmenu_extended_run is able to use the new vim.desktop file (via xdg-open) to open the file, eliminating a need to use the "Open with" operator.
Note that you may need to update your mimeapps.list file such that vim is the default file handler for all text files. A handy tool for this is selectdefaultapplication, available here: https://github.com/sandsmark/selectdefaultapplication
I am using dmenu-extended with i3. In my config file I put:
bindsym $mod+d exec --no-startup-id dmenu_extended_run --debug > dmenu.log
to capture the log. Let's say I have some .java file I would like to edit in terminal with vi. I type:/home/pawel/Dropbox/gitRepos/command/src/test/java/hamcrest/custom/ValueOfTheFieldMatcher.java:vi
and this brings no result... When I check my log file I can see following lines:My workaround is to select the file first, tab-complete then type
;
and go to the beginning of the line and typevi
;Also it works just fine when I run dmenu-extended from console.
Any ideas?