1
0
mirror of https://github.com/makew0rld/amfora.git synced 2025-02-02 15:07:34 -05:00
amfora/display
mntn fd8f122ec0
Adds support for custom commands (#265)
* Adds support for custom commands

Supports up to 10 custom commands, defined in the configuration file.
The current or selected URL can be passed to the command by placing
${url} in the command string.

Default hotkeys are Alt-1 through Alt-0 for triggering the command
with the selected link URL as a parameter, or Alt-Shift-1 through
Alt-Shift-0 for triggering the command with the current page URL
as a parameter. This follows the convention set by the copy page
URL (C) and copy selected URL (c) defaults.

Custom commands must be available in the $PATH or use absolute
paths. Relative paths are not supported, neither are pipes or
shell redirections.

* Fix linting issues

* Fix typo

* Further clarify comment

* Use goroutines for Error/Info calls

* Run go fmt to fix issue from merge

---------

Co-authored-by: makeworld <makeworld@protonmail.com>
2024-12-19 17:51:11 -05:00
..
about.go Works now! 2021-02-27 21:18:03 -05:00
bookmarks.go Add top level 1 heading as bookmark title suggestion (#293) 2022-01-28 12:18:28 -05:00
command.go Adds support for custom commands (#265) 2024-12-19 17:51:11 -05:00
display.go adding tabModeSearch to search in page (#240) 2024-12-18 19:32:22 -05:00
download.go Lint fix 2021-12-22 20:39:17 -05:00
file.go Show local directory index file if available (#319) 2023-09-27 18:14:35 -04:00
handlers.go add confirmation prompts for url schemes (#302) 2022-04-25 21:01:08 -04:00
help.go Adds support for custom commands (#265) 2024-12-19 17:51:11 -05:00
history.go Selected link and scroll position stays for non-cached pages 2021-12-26 16:22:29 -05:00
license.go Add more about: pages (#187) 2021-02-12 21:26:07 -05:00
license.sh Add more about: pages (#187) 2021-02-12 21:26:07 -05:00
modals.go Modal fixes (#281) (#284) 2021-12-22 17:09:47 -05:00
newtab.go Update URLs for official Project Gemini capsule (#342) 2023-11-03 11:34:18 -04:00
panels.go Fix users being unable to exit help menu (#261) 2021-12-07 20:18:08 -05:00
private.go Tabs have labels of the URL domain instead of numbers 2021-12-28 16:39:42 -05:00
subscriptions.go Lint fixes 2021-12-23 14:20:50 -05:00
tab.go Adds support for custom commands (#265) 2024-12-19 17:51:11 -05:00
thanks.go doc for #240 2024-12-18 19:38:32 -05:00
thanks.sh Add more about: pages (#187) 2021-02-12 21:26:07 -05:00
util.go Tabs have labels of the URL domain instead of numbers 2021-12-28 16:39:42 -05:00