Skip to content

Commit

Permalink
Added stash/pop stash keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
JetpackDuba committed Aug 21, 2024
1 parent 761ea59 commit 510d1e7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/kotlin/com/jetpackduba/gitnuro/keybindings/Keybinding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ enum class KeybindingOption {
* Used to show branch creation dialog
*/
BRANCH_CREATE,

/**
* Used to stash workspace changes
*/
STASH,

/**
* Used to pop stash changes to workspace
*/
STASH_POP,
}


Expand Down Expand Up @@ -90,6 +100,12 @@ private fun baseKeybindings() = mapOf(
KeybindingOption.BRANCH_CREATE to listOf(
Keybinding(key = Key.B, control = true),
),
KeybindingOption.STASH to listOf(
Keybinding(key = Key.S, control = true),
),
KeybindingOption.STASH_POP to listOf(
Keybinding(key = Key.S, control = true, shift = true),
),
)

private fun linuxKeybindings(): Map<KeybindingOption, List<Keybinding>> = baseKeybindings()
Expand Down

0 comments on commit 510d1e7

Please sign in to comment.