Skip to content

Commit 2ed058c

Browse files
committed
Add [O] to show the most recent commit in the status view
1 parent 001798d commit 2ed058c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Default.sublime-keymap

+10
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,16 @@
495495
{ "key": "selector", "operand": "meta.git-savvy.summary-header meta.git-savvy.commit-info" }
496496
]
497497
},
498+
{
499+
"keys": ["O"],
500+
"command": "gs_show_commit",
501+
"args": { "commit_hash": "HEAD" },
502+
"context": [
503+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
504+
{ "key": "setting.git_savvy.status_view", "operator": "equal", "operand": true }
505+
]
506+
},
507+
498508
{
499509
"keys": ["?"],
500510
"command": "gs_interface_toggle_help",

core/interfaces/status.py

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ class StatusInterface(ui.ReactiveInterface, GitCommand):
164164
## OTHER ##
165165
###########
166166
167+
[O] show most recent commit
167168
[g] show graph repo history
168169
[?] toggle this help menu
169170
[tab] transition to next dashboard

0 commit comments

Comments
 (0)