Comments (4)
@lescx update this feature in https://github.com/MHNightCat/superfile/tree/open-with-editor
from superfile.
This is a nice suggestion. I can try to implement this. Shouldn't really be hard.
I think currently superfile can support vim, neovim, nano and emacs
What are your thoughts on this?
from superfile.
There are already a few OS specific ways we can check for the default editor.
Of course there are $EDITOR
(and $VISUAL
which isn't important in this context) we can check for. No need to only rely on the mentioned ones - I do not have vim
, neovim
, nano
or emacs
installed on my system for example.
The most simple and error-prone method: A user can define $EDITOR
to be for example EDITOR=flatpak run com.visualstudio.code
to also open graphical editors (or, more generally a default application - there might be people who want to open e.g. Unreal Engine).
A better way would be to use the linux-specific $XDG_CONFIG_HOME/mimeapps.list
where a user can define an application for the inode/directory
MIME type. GNOME documentation
macOS uses Uniform Type Identifiers for this.
from superfile.
release in release in https://github.com/MHNightCat/superfile/releases/tag/v1.1.1
from superfile.
Related Issues (20)
- Can't launch superfile with a read-only config file HOT 5
- Feature Request: Vim-like Keybindings for spf HOT 1
- Can't create file or folder HOT 2
- Folder preview's icons has transparency issue HOT 3
- Use built-in unix command `stat` instead of `exiftool` HOT 1
- Feat.: add an uninstall script HOT 2
- Wrong hotkeys in hel menu (whitch open by ?) HOT 1
- Use xdg-user-dirs in sidebar HOT 1
- Feature Request: Add Shift + Delete to Permanently Delete Files Without Using Trash Can HOT 1
- Add Undo/Redo operations HOT 1
- Create too many instances of `exiftool` HOT 1
- Vim bindings in docs cause error on nixos HOT 3
- Creating sym-link by spf
- Superfile doesn't render small text files HOT 2
- Problem with torrents HOT 1
- Compress all files selected
- Going to System32 folder instead of parental directory
- Messed up rendering in hyper terminal HOT 2
- Windows 10?/11 Ctrl+d does not delete file or move it to the trash
- typo in default hotkeys .toml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superfile.