You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround, I created a new plugin by copying default_plugin/tab-bar and change two lines.
diff '--color=auto' -u -d zellij/default-plugins/tab-bar/src/main.rs zellij-numbered-tab-bar/src/main.rs
--- zellij/default-plugins/tab-bar/src/main.rs 2023-07-04 12:02:02.945084784 +0530+++ zellij-numbered-tab-bar/src/main.rs 2023-07-04 12:32:54.071993388 +0530@@ -91,8 +91,8 @@
let mut is_alternate_tab = false;
- for t in &mut self.tabs {- let mut tabname = t.name.clone();+ for (i,t) in self.tabs.iter_mut().enumerate() {+ let mut tabname = format!("{}. {}",i+1,t.name.clone());
if t.active && self.mode_info.mode == InputMode::RenameTab {
I don't want to maintain a new plugin with just two lines different. Can it be in default_plugins in any way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
It will be nice to
ctrl t
is pressed.Like the following
As a workaround, I created a new plugin by copying default_plugin/tab-bar and change two lines.
diff '--color=auto' -u -d zellij/default-plugins/tab-bar/src/main.rs zellij-numbered-tab-bar/src/main.rs
I don't want to maintain a new plugin with just two lines different. Can it be in default_plugins in any way?
Beta Was this translation helpful? Give feedback.
All reactions