Skip to content

Commit

Permalink
Fixed hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
grrlopes committed Sep 1, 2023
1 parent 7045a2a commit d3f0f36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Download the binary through [Latest version](https://github.com/grrlopes/storydb/releases) and place storydb into ```/bin``` or Clone the project and run ```go run build```
- You can overwrite your currently crt+r by ```bind '"\C-r": "\C-a storydb \C-j"'``` put it in your global variable as ```/etc/profile``` or ```$HOME/profile```

![](screenshots/storydb1.gif)
![](screenshots/storydb2.gif)

You can conveniently explore and interact with your command-line history, making it easier to recall past commands, analyze usage patterns, and improve your workflow in the terminal.

Expand All @@ -19,7 +19,7 @@ You can conveniently explore and interact with your command-line history, making
| ctrl+s, ← | page left |
| enter | select row to fill term |
| ctrl+c, q | bring down finder or quit |
| s | sync/load history file |
| alt+s | sync/load history file |
| ctrl+r | reset finder text input |
| f | bring up finder text input|

Expand Down
8 changes: 4 additions & 4 deletions helper/keymaps.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ func (k Keymap) FullHelp() [][]key.Binding {

var HotKeysHome = Keymap{
SyncScreen: key.NewBinding(
key.WithKeys("s"),
key.WithHelp("s", "sync"),
key.WithKeys("alt+s"),
key.WithHelp("alt+s", "sync"),
),
Enter: key.NewBinding(
key.WithKeys("enter"),
Expand All @@ -60,11 +60,11 @@ var HotKeysHome = Keymap{
key.WithHelp("ctrl+s", "Prev Page"),
),
MoveUp: key.NewBinding(
key.WithKeys("shift+tab", "up", "j"),
key.WithKeys("shift+tab", "up", "k"),
key.WithHelp("shift+tab/Up", "↑"),
),
MoveDown: key.NewBinding(
key.WithKeys("tab", "down", "k"),
key.WithKeys("tab", "down", "j"),
key.WithHelp("tab/Down", "↓"),
),
}
Expand Down
Binary file removed screenshots/storydb1.gif
Binary file not shown.
Binary file added screenshots/storydb2.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d3f0f36

Please sign in to comment.