Skip to content

Commit f92363a

Browse files
nils-aStephan Dilly
authored andcommitted
removed tab_toggle_reverse_windows
changed tab_toggle_reverse to include the SHIFT modifier, as crossterm now (i.e. since crossterm-rs/crossterm#490) sends SHIFT modifier for linux, too.
1 parent b769a83 commit f92363a

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

assets/vim_style_key_config.ron

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
tab_stashes: ( code: Char('4'), modifiers: ( bits: 0,),),
1616

1717
tab_toggle: ( code: Tab, modifiers: ( bits: 0,),),
18-
tab_toggle_reverse: ( code: BackTab, modifiers: ( bits: 0,),),
19-
tab_toggle_reverse_windows: ( code: BackTab, modifiers: ( bits: 1,),),
18+
tab_toggle_reverse: ( code: BackTab, modifiers: ( bits: 1,),),
2019

2120
focus_workdir: ( code: Char('w'), modifiers: ( bits: 0,),),
2221
focus_stage: ( code: Char('s'), modifiers: ( bits: 0,),),

src/app.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ impl App {
224224
let new_flags = if k == self.key_config.tab_toggle {
225225
self.toggle_tabs(false)?;
226226
NeedsUpdate::COMMANDS
227-
} else if k == self.key_config.tab_toggle_reverse
228-
|| k == self.key_config.tab_toggle_reverse_windows
229-
{
227+
} else if k == self.key_config.tab_toggle_reverse {
230228
self.toggle_tabs(true)?;
231229
NeedsUpdate::COMMANDS
232230
} else if k == self.key_config.tab_status

src/keys.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ pub struct KeyConfig {
2323
pub tab_stashes: KeyEvent,
2424
pub tab_toggle: KeyEvent,
2525
pub tab_toggle_reverse: KeyEvent,
26-
pub tab_toggle_reverse_windows: KeyEvent,
2726
pub focus_workdir: KeyEvent,
2827
pub focus_stage: KeyEvent,
2928
pub focus_right: KeyEvent,
@@ -76,8 +75,7 @@ impl Default for KeyConfig {
7675
tab_stashing: KeyEvent { code: KeyCode::Char('3'), modifiers: KeyModifiers::empty()},
7776
tab_stashes: KeyEvent { code: KeyCode::Char('4'), modifiers: KeyModifiers::empty()},
7877
tab_toggle: KeyEvent { code: KeyCode::Tab, modifiers: KeyModifiers::empty()},
79-
tab_toggle_reverse: KeyEvent { code: KeyCode::BackTab, modifiers: KeyModifiers::empty()},
80-
tab_toggle_reverse_windows: KeyEvent { code: KeyCode::BackTab, modifiers: KeyModifiers::SHIFT},
78+
tab_toggle_reverse: KeyEvent { code: KeyCode::BackTab, modifiers: KeyModifiers::SHIFT},
8179
focus_workdir: KeyEvent { code: KeyCode::Char('w'), modifiers: KeyModifiers::empty()},
8280
focus_stage: KeyEvent { code: KeyCode::Char('s'), modifiers: KeyModifiers::empty()},
8381
focus_right: KeyEvent { code: KeyCode::Right, modifiers: KeyModifiers::empty()},

0 commit comments

Comments
 (0)