https://github.com/yurenchen000/terminator-trzsz-plugin
terminator plugin for trzsz dragfile support
https://github.com/yurenchen000/terminator-trzsz-plugin
terminator-plugin terminator-terminal
Last synced: 14 days ago
JSON representation
terminator plugin for trzsz dragfile support
- Host: GitHub
- URL: https://github.com/yurenchen000/terminator-trzsz-plugin
- Owner: yurenchen000
- Created: 2024-09-22T16:27:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-22T17:03:59.000Z (over 1 year ago)
- Last Synced: 2025-03-18T15:12:08.563Z (about 1 year ago)
- Topics: terminator-plugin, terminator-terminal
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terminator Trzsz Plugin
## about trzsz
https://github.com/trzsz/trzsz-go
with awesome [trzsz-go](https://trzsz.github.io/go), you can got `lrzsz` and `trzsz` support for [terminator](https://github.com/gnome-terminator/terminator)
Just run `trzsz -d bash`, then it will Take over your zmodem file transmit from stdio.
you can use traditional `rz` `sz` cmd now (Or the more modern `trz` `tsz` cmd with Progress Bar)
And you can set it as terminator default shell:
Terminator Preferences > Profile > Command > Custom Command: `trzsz --dragfile bash`
## dragfile support
BUT,
terminator lack of dragfile support, so this plugin come..
**It only add dragfile support for `trzsz --dragfile bash`**
## requirements
only tested with terminator 2.1.1+, on ubuntu 22 lts
## Install
1. Copy `trzsz_dragfile.py` to ~/.config/terminator/plugins/
2. Terminator Preferences > Plugins: enable `TrzszDrag`
## Usage
this only add dragfile support for Trzsz.
just dragfile to terminator
## Dev Note
this plugin based on `TerminalHandler`,
It is the third type of plugin that is implemented through heavy hacking
cause terminator offically only support [two type of plugins](https://gnome-terminator.readthedocs.io/en/latest/plugins.html#creating-your-own-plugins):
- plugin.URLHandle
- plugin.MenuItem
which makes plugin functionality very limited.
After some exploration, I implement this new plugin type,
which improved the plugin capabilities.
Another plugin with `shortcut` support in terminator plugin
(through hacking way, cause orignal plugin no such capbility)
https://github.com/yurenchen000/terminator-hints-plugin
## Other Plugins
[](https://github.com/yurenchen000/yurenchen000/blob/main/repos.md#terminator-plugins)