-
-
Notifications
You must be signed in to change notification settings - Fork 683
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
Add integration to Nautilus file manager #1092
Comments
If you can find out how Tilix registers itself there, then that will help someone implement the same technique here! |
https://help.ubuntu.com/community/NautilusScriptsHowto Looks like one could make a shell script using these shell variables: $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
$NAUTILUS_SCRIPT_CURRENT_URI And place it in |
I think packages are meant to use the equivalent path in |
There's also a rust binding to Nautilus, see https://github.com/talklittle/nautilus-extension-rs/ I've started working on a plugin with that library, but I'm unsure whether it could find a place here. As far as I can see wezterm is MIT, however that binding is GPL-3, making any extension based on that effectively GPL-3 as well. Nautilus Python has a similar issue; it's GPL-2. The underlying libnautilus-extension is LGPL-2, but I'd not like to resort to C just to avoid some license. If GPL bars a nautilus extension from being included here, I'm happy to maintain it independently 🙂 |
re: license question, it's OK to include the plugin crate here in a sub-directory. We can make it clear that just that directory is subject to GPL-3. In my mind the plugin would be essentially shelling out to launch wezterm or perhaps shelling out to re: maintaining it: I would love to not be the primarily responsible person for this component because I just don't use Nautilus enough to run it through its paces. There's some administrative stuff to wrangle:
Having the code live in this repo should make it easier for the plugin to appear in downstream distributions as more of them package up wezterm, which feels like it would be good for users. |
I didn't like those Rust bindings so I prototyped a small Python extension instead, see https://codeberg.org/flausch/dotfiles/src/commit/b892008767d8ebe58f9378c5ee1c757549de5f62/gnome/nautilus-extensions/wezterm-nautilus.py. Currently it's rather dumb and just spawns a new wezterm instance and window every time the menu item's clicked, and entirely ignores multiplexing. If that's good enough I'm happy to contribute it, but I'm not sure I'd like to deal with the packaging stuff 😬 I looked at It's also probably up for debate whether and how this extension should deal with multiplexing. I guess someone who's setup some multiplexing domains expects to have windows spawned in their preferred Unix multiplexing domain, but since there's no standard domain in WezTerm and people probably have different ideas about whether there should be new windows, or new tabs in existing windows, and which window to choose if there are multiple, etc. it's perhaps quite hard to get this right in a generic way 🤔 |
Looks good! Re: multiplexing, I'd suggest not worrying about it in this context. In the nightly builds, launching new programs via Packaging wise, here's what I suggest; looking at this bit that installs the equivalent thing for tilix: https://github.com/gnunn1/tilix/blob/cb8ef536cb88f3d3d525654a88481cdc3d310f30/install.sh#L103-L105 I think the steps are:
|
I'll try to make a merge request. I've two more questions though:
|
Heh, I also have incomplete knowledge here :-) If My understanding is that debian has a way to list optional dependencies, but I'm not sure about it. https://linuxhint.com/debian_package_dependencies/ seems to imply that it might be I don't think you can have optional deps in rpms, but I also think that it is fine to deploy the script without listing a dep.
Correct: It needs to be in the appimage for the PKGBUILD machinery to work and install it |
I've opened #1712 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Is your feature request related to a problem? Please describe.
cd
to deep directory structure is hard.Describe the solution you'd like
Add right click context menu to open wezterm using current directory from Nautilus.
Describe alternatives you've considered
[..]
Additional context
Example from Tilix.
The text was updated successfully, but these errors were encountered: