Oliver Blanthorn
b990125792
Add hint -c [selector]
: add hints that match selector
...
It's particularly good on Hacker News and Reddit with
`bind ;c hint -c [class*="expand"],[class="togg"]` for minimising
comments and expanding images.
2017-11-29 13:23:30 +00:00
Oliver Blanthorn
6cd93b233d
Allow ;p to yank any element which contains text
2017-11-29 12:09:37 +00:00
John Beard
f0dfe1d5da
Refactor document CSS selector queries with dom.ts
...
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.
2017-11-29 02:27:49 +00:00
John Beard
a3ca5cd2c1
Add yank anchor hint submode (;#)
...
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
2017-11-29 02:27:23 +00:00
Colin Caine
4a3a25751c
hinting: Fix #136 .
...
Hints still don't work for images, but I don't see any way we can detect that they're clickable, besides special casing instagram.
2017-11-28 17:19:50 +00:00
John Beard
221b94c8ff
Add hint focus mode (;;)
...
This focuses the hinted element with excmd ":hint -;".
Includes VImperator binding to ";;"
2017-11-25 01:47:56 +00:00
Oliver Blanthorn
f018af900c
Merge branch 'master' of github.com:cmcaine/tridactyl into emanresusername-master
2017-11-23 10:24:40 +00:00
Oliver Blanthorn
1ecf2c9bc5
Merge branch 'master' of github.com:cmcaine/tridactyl into johnbeard-imghint
2017-11-23 10:01:54 +00:00
j
b95af255e4
add pre
, code
, span
to HINTTAGS_text_selectors
2017-11-23 10:46:48 +09:00
Colin Caine
d1784c994d
hinting: leave hint mode if no hints
2017-11-23 01:10:45 +00:00
John Beard
a46934b2dd
Add image hinting (;i, ;I)
...
This supports hinting of <img> tags, and will open the src attribute in
the current or BG tab.
2017-11-22 23:03:28 +00:00
Colin Caine
04e29c061b
hinting: default to uniform length tags
...
They're easier to type than <letter><enter>
2017-11-22 21:30:36 +00:00
Oliver Blanthorn
bd3669eb34
Allow hinting on classes containing 'button' (fixes reddit)
2017-11-22 21:14:43 +00:00
Oliver Blanthorn
ea697464b3
Add text yank mode
2017-11-22 20:47:35 +00:00
Oliver Blanthorn
63a52e63c4
Add yank hint mode, allow messageActiveTab to be called from content
2017-11-22 19:09:52 +00:00
Colin Caine
0751378067
hinting: hide all hints before select
...
Otherwise the page can be changed before the hints are cleaned
2017-11-19 16:48:21 +00:00
Colin Caine
241bccda7e
hinting: Move mode changes inside
2017-11-19 07:57:30 +00:00
Colin Caine
692cdeb5d7
messaging: don't use browserProxy on ext pages
2017-11-19 07:43:48 +00:00
Colin Caine
209984caa6
hinting: log less
2017-11-19 03:20:15 +00:00
Colin Caine
7685ee6368
hinting: Make F open new tab after current
...
Closes #72
2017-11-19 01:58:59 +00:00
Colin Caine
1469d4dc85
hinting: support anchor target
2017-11-18 03:06:16 +00:00
Colin Caine
9e75cbed3f
hinting: allow hints to open in bg
2017-11-18 01:51:46 +00:00
Colin Caine
5b44a7747c
hinting: use css selectors rather than xpath
2017-11-12 01:14:45 +00:00
Colin Caine
b87db7b49f
hint: Focus hint targets before clicking them
...
Presumably untrusted MouseEvents can't focus elements.
Anyway, this fixes focussing input elements.
2017-11-09 21:30:28 +00:00
Colin Caine
927e19c818
hinting: First working version
...
state.ts also reworked into a sexy new machine. Check it out!
2017-11-09 05:44:48 +00:00
Colin Caine
adfca7cf69
hinting WIP: plumb to background
2017-11-09 05:44:40 +00:00