Skip to content

Instantly share code, notes, and snippets.

@Bhupesh-V
Last active April 14, 2023 14:14
Show Gist options
  • Save Bhupesh-V/47955123aa312615a0d7ec15f54749ab to your computer and use it in GitHub Desktop.
Save Bhupesh-V/47955123aa312615a0d7ec15f54749ab to your computer and use it in GitHub Desktop.
NeoVim desktop file to use with Mate Terminal - open file with neovim in new terminal window
[Desktop Entry]
Name=NeoVim
Categories=;
Comment=Edit file in NeoVim
Exec=mate-terminal -e 'nvim %F' %f
Terminal=false
Type=Application
Keywords=Text;editor;
Icon=nvim
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;text/x-python;
  1. Place the desktop file in .local/share/applications
  2. Run update-desktop-database .local/share/applications
  3. Go to your file manager > Desired File > Properties > Open With > NeoVim

You can swap you termianl app name with mate-terminal, So if you are on xfce this would be xfce-terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment