Other vim-likes map `q` and `quit` to `tabclose`, so let's
do the same to appease their muscle memory.
While we're at it, we can add `qa` as a shortcut for `qall`
(vim also supports this shorthand).
- Add `focusinput -n` and `focusinput -N`
- Press `gi` to focus input and enter inputmode
- When in inputmode, `Tab` to focus input after last focussed one, `Shift+Tab`
to focus input before last focussed one
- Reflowed text
- Added Matrix/Gitter chat badges
- Added Freenode badge and link
- Used static images for badges on help page to avoid external loads
- Inlined some links, rather than using [1] suffixes
Problem: When using home() to open the homepage, tridactyl opens the
default search engine instead.
Solution: This was due to calling open(homepages[-1]). Open recieved
`undefined` as argument, gave it to forceURI which returned the default
search engine URL. Replacing `-1` with `homepages.length-1` fixes the
issue.
Fixes issue https://github.com/cmcaine/tridactyl/issues/188
Problem: Yankshort didn't yank short urls on bugzilla.mozilla.org. This
was due to bugzilla.mozilla.org using an old, non-standard, non-html5
compliant way of advertising its short urls.
Solution: Make yankshort check if a rev="canonical" link exists if it
cannot find a rel="shortlink" url.
Fixes issue https://github.com/cmcaine/tridactyl/issues/172 .
This adds an excmd interface to the Web Speech API (TTS), which allows
users to read text out and set voice and parameters via config options.
Excmds:
- ttsread: reads out the given text or element content (CSS selected)
- ttsvoices: lists available voice names (can be used in the
'ttsvoice' option)
- ttscontrol: stops the current reading (should also pause/resume,
but that doesn't seem to work right now)
Config options:
- ttsvoice: the name of the voice to use
- ttsrate: (0.1-10)
- ttsvolume: (0-1)
- ttspitch: (0-2)
Also the ;r hint submode is added which reads the textcontent of the
element with the configured voice
The DOM.getElemsBySelector function makes it a bit less verbose to
construct an array of filtered elements matching a selector.
Also, this function is expanded to take multiple filters, applied
sequentially.
THis yanks the page URL with the hinted elements id or title as a hash
fragment, which can be used to link to the page at that element's
location.
For example: https://en.wikipedia.org/wiki/Vim_(text_editor)#History
;# nmap added, from Vimperator