diff options
| author | Daniel Jankowski <Daniel.Jankowski@rub.de> | 2023-11-07 16:51:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-07 16:51:52 +0100 |
| commit | 0256553be635d60104961a28583a5b01ae3958a0 (patch) | |
| tree | 127741702b52ec26b0e164992f368a3aecc164b1 /src/widgets/widget.rs | |
| parent | chore: refactor border rendering (diff) | |
| download | sl0pstatus-0256553be635d60104961a28583a5b01ae3958a0.tar.gz sl0pstatus-0256553be635d60104961a28583a5b01ae3958a0.tar.xz sl0pstatus-0256553be635d60104961a28583a5b01ae3958a0.zip | |
feat: add widget for running arbitrary commands (#16)
* chore: update zellij-tile to 0.39.0 with git version
* chore: update flake deps
* feat: rework render + add stub command widget
* feat: implement command handling
* chore: refactoring command widget
* chore: add command description to README
* chore: remove debugging output
* fix: recreate lock file after interval
Due to a bug when attaching sessions, the lock file
needs to be recreated for another try to run the
command, when permissions were granted
* fix: pause on detach and without permissions
* chore: clean up previous unneeded changes
* chore: clean up imports
* chore: fix clippy issues
* chore: remove debug output
* fix: strip newline only when it exists
* feat: update to zellij-tile 0.39.0
Diffstat (limited to 'src/widgets/widget.rs')
| -rw-r--r-- | src/widgets/widget.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/widget.rs b/src/widgets/widget.rs index 303284c..48eeef6 100644 --- a/src/widgets/widget.rs +++ b/src/widgets/widget.rs @@ -1,6 +1,6 @@ use crate::ZellijState; pub trait Widget { - fn process(&self, state: ZellijState) -> String; + fn process(&self, name: &str, state: ZellijState) -> String; fn process_click(&self, state: ZellijState, pos: usize); } |
