diff --git a/config/default.go b/config/default.go index f481f23..0502de6 100644 --- a/config/default.go +++ b/config/default.go @@ -190,6 +190,11 @@ underline = true # bind_end: same but the for the end (bottom left) # bind_url_handler_open: Open highlighted URL with URL handler (#143) +# Search +# bind_search = "/" +# bind_next_match = "n" +# bind_prev_match = "N" + [url-handlers] # Allows setting the commands to run for various URL schemes. # E.g. to open FTP URLs with FileZilla set the following key: diff --git a/default-config.toml b/default-config.toml index 3a4ca62..5184a8b 100644 --- a/default-config.toml +++ b/default-config.toml @@ -187,6 +187,11 @@ underline = true # bind_end: same but the for the end (bottom left) # bind_url_handler_open: Open highlighted URL with URL handler (#143) +# Search +# bind_search = "/" +# bind_next_match = "n" +# bind_prev_match = "N" + [url-handlers] # Allows setting the commands to run for various URL schemes. # E.g. to open FTP URLs with FileZilla set the following key: diff --git a/display/help.go b/display/help.go index a6646a4..97884df 100644 --- a/display/help.go +++ b/display/help.go @@ -49,6 +49,9 @@ var helpCells = strings.TrimSpace( "%s\tSave the current page to your downloads.\n" + "%s\tView subscriptions\n" + "%s\tAdd or update a subscription\n" + + "%s\tSearch the page content for a string\n" + + "%s\tFind next search match\n" + + "%s\tFind previous search match\n" + "%s\tQuit\n") var helpTable = cview.NewTextView() @@ -110,6 +113,9 @@ func helpInit() { config.GetKeyBinding(config.CmdSave), config.GetKeyBinding(config.CmdSub), config.GetKeyBinding(config.CmdAddSub), + config.GetKeyBinding(config.CmdSearch), + config.GetKeyBinding(config.CmdNextMatch), + config.GetKeyBinding(config.CmdPrevMatch), config.GetKeyBinding(config.CmdQuit), )