Skip to content

Commit

Permalink
commands: re-add clear typeahead history, remove dangling `reload con…
Browse files Browse the repository at this point in the history
…fig` command
  • Loading branch information
abenz1267 committed Oct 29, 2024
1 parent 7262958 commit bd9937f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/modules/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ func (c *Commands) SetupData(cfg *config.Config, ctx context.Context) {
label string
exec string
}{
{
label: "Reload Config",
exec: "reloadconfig",
},
{
label: "Reset History",
exec: "resethistory",
Expand Down
3 changes: 3 additions & 0 deletions internal/ui/interactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func setupCommands() {
commands["clearclipboard"] = func() {
os.Remove(filepath.Join(util.CacheDir(), "clipboard.gob"))
}
commands["cleartypeaheadcache"] = func() {
os.Remove(filepath.Join(util.CacheDir(), "inputhistory_0.7.6.gob"))
}
}

func setupInteractions(appstate *state.AppState) {
Expand Down

0 comments on commit bd9937f

Please sign in to comment.