Skip to content
Snippets Groups Projects
Commit 0e063a9b764a authored by Jordi Gutiérrez Hermoso's avatar Jordi Gutiérrez Hermoso
Browse files

crecord: enable search hotkeys (issue6834)

The keys I chose here should be similar to less/vim keybindings, which
should fit the overall keybinding theme of crecord.
parent d0f6b96d1fb8
No related branches found
No related tags found
1 merge request!776crecord: add search functionality (issue6834)
......@@ -1665,6 +1665,9 @@
a : toggle all selections
c : confirm selected changes
r : review/edit and confirm selected changes
/ : regex search for code or filename
n : next search result for code or filename
N : previous search result for code or filename
q : quit without confirming (no changes will be made)
? : help (what you're currently reading)"""
)
......@@ -2013,6 +2016,12 @@
self.togglefolded(foldparent=True)
elif keypressed in ["m"]:
self.commitMessageWindow()
elif keypressed in ["/"]:
self.handlesearch()
elif keypressed in ["n"]:
self.handlenextsearch()
elif keypressed in ["N"]:
self.handleprevsearch()
elif keypressed in ["g", "KEY_HOME"]:
self.handlefirstlineevent()
elif keypressed in ["G", "KEY_END"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment