dotfiles/qutebrowser/.config/qutebrowser/alias.py
Marty Oehme f7350756d0
qute: Update bookmarklets and config structure
qute: Add gemini integration

Added simple integration for gemini. When following a link (`f` or `F`)
to a page which begins with the `gemini://` protocol, it will
automatically convert the page to html and display it instead.

qute: Update configuration structure

Moved larger setting blocks (cmd aliaes, content settings, key mappings,
url settings) into their own files.

qute: Add readability, code_select userscripts

Added userscript to invoke (python) readability mode which will render
the page in a much more nicely to read display.
Can be invoked either through `:spawn --userscript readability` or the
key combination `<leader>r`.

Added userscript to copy code snippets from websites, using the `code`
html tag. Invoked through `;c` to fit into the other extended hinting
options qutebrowser provides.

qute: Add open downloads, default download location

Added ability to open last downloads with `gD`, replaces the previous
open last download -- this one lets you select with dmenu where the old
option only opened the very last download automatically.

Set the download directory to default to XDG directory, with fallback to
`~/downloads` if the env var is not set.

qute: Set vifm filepicker

Set vifm to be the filepicker for qute. Can be used to select single or
multiple files.
Simply select the intended files in vifm and they will be passed through
to qutebrowser (and thus whatever website).
2021-04-22 11:37:27 +02:00

33 lines
1.2 KiB
Python

c.aliases["gem"] = "hint links userscript qute-gemini"
# Use q for quitting a tab (mimicks vim buffer) - qa is used for exiting
c.aliases["q"] = "tab-close"
# if we save sessions with w, load sessions with e (again, mimicks vim)
c.aliases["e"] = "session-load"
# wallabag add current page, either with walla command, or <leader>bw
c.aliases["add-wallabag"] = "spawn --userscript wallabag_add.sh"
# add to (my) shaarli instance
c.aliases["add-shaarli"] = "spawn --userscript shaarli_add.sh"
# re-opens the current page on the web archive overview page
c.aliases["send-to-archive"] = "open https://web.archive.org/web/{url}"
# sends current page to outline and thus through readability mode
c.aliases["send-to-outline"] = "open https://outline.com/{url}"
# save current page to pdf file
c.aliases["save_to_pdf"] = "spawn --userscript pagetopdf.sh"
# translate current page / selection with google translate
c.aliases["translate-page-google"] = "spawn --userscript translate_google.sh"
c.aliases[
"translate-selection-google"
] = "spawn --userscript translate_google.sh --text"
# print picture of current url as qr code
c.aliases["show-qr"] = "spawn --userscript qr"
# add a task of current page to taskwarrior
c.aliases["taskadd"] = "spawn --userscript taskadd"