Colin Caine
2626d292f0
Fix :unbind better
...
Remove all unbound keys before passing to keyseq.parse(). Resolves #402 .
2018-04-18 11:07:57 +01:00
Colin Caine
1ef49cb6e8
Fix :unbind
...
Unbinding actually sets the property to `""`, but the keyseq code
rightly doesn't know about that convention.
For now I'm putting some special casing in the normalmode parser.
Fixes #398 .
2018-04-17 01:09:59 +01:00
Colin Caine
2ccfdda110
Use keyseq for normalmode
...
Also rename ex_str to exstr in a bunch of places for no real reason.
2018-04-16 00:07:49 +01:00
Oliver Blanthorn
095ce771ea
Formatting: run all typescript through prettier
2018-04-13 19:28:03 +01:00
Oliver Blanthorn
da68d5f398
Add basic configuration with set
...
Currently does not import previous binds
2017-11-29 16:28:06 +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
e933c100d3
excmd: Replace tabchoose with tabprev_gt
...
The gT and gt maps in vim aren't symmetric, this better preserves
those semantics while removing a confusingly named excmd
2017-11-28 16:16:41 +00:00
Oliver Blanthorn
de84cd42f5
Fix #134 : [count]gt now goes to nth tab
...
Known issues: count is ignored on gT
2017-11-28 14:28:20 +00:00
Robbie McMichael
87aa3ee225
Add tabfirst and tablast commands
2017-11-27 19:59:43 +00:00
Oliver Blanthorn
eef773f44a
Add binding to yankcanon, yankshort
2017-11-27 18:51:33 +00:00
Oliver Blanthorn
38ff3f7ca4
Merge branch 'master' of github.com:cmcaine/tridactyl into johnbeard-focusinput
2017-11-26 12:18:14 +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
John Beard
6a48990751
Add focusinput command (gi)
...
Can focus the nth input from the start or end of a page.
Also has some special modes:
-l: last focussed input
-p: first password input
-b: the largest input by area
2017-11-25 01:41:38 +00:00
Oliver Blanthorn
aeb3fa167e
Fix #68
2017-11-23 19:55:45 +00:00
chocolateboy
0953425cf5
improve pagination:
...
- prefer the canonical forms over fallback patterns
(fixes rockpapershotgun.com, Discourse etc.):
1) link[rel]
2) a[rel]
3) a::text(pattern)
- tighten fallback patterns (fixes Google, GitHub etc.)
- remove site-specific patterns
2017-11-23 15:07:48 +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
Koushien
f982233a49
completions: initial implementation
...
This commit squashes a load of work by @Koushien, a dozen hours from
@cmcaine and some CSS by @bovine3dom.
@cmcaine is writing this commit message, but the work was mostly by
Koushien so the author is set to them. Thanks Koushien!
The following issues need to be fixed:
- The interface is over complicated (my fault)
- commandline_frame is hard-coded to use BufferCompletionSource. This
needs to be made more general
- BufferCompletionSource should be generalised
- completions.ts calls helper functions in commandline_frame. Should
just use browser proxy. If that's too slow can define a
completions_background.ts
After that's done, this should be fixed:
- Completion hiding/unhiding is currently too messy.
2017-11-22 21:30:37 +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
Oliver Blanthorn
00c02b454e
Add rudimentary bookmark support
...
Only covers the addition / removal of bookmarks.
2017-11-22 12:24:37 +00:00
Oliver Blanthorn
85d6eba2b5
Revert "Merge branch 'Koushien-completions'"
...
This reverts commit 0aa14bb754
, reversing
changes made to eae9cd0dab
.
2017-11-21 20:28:48 +00:00
Oliver Blanthorn
7d825146c5
Merge branch 'master' of github.com:cmcaine/tridactyl
2017-11-21 19:16:27 +00:00
Oliver Blanthorn
0aa14bb754
Merge branch 'Koushien-completions'
...
Currently doesn't support "tab" and has lots of dead code. Only
implemented for tabs right now.
2017-11-21 19:13:48 +00:00
John Beard
27116a3416
Add urlparent (gu) command
...
This command changes the URL to the parent URL.
Normal mode binding 'gu' added: same as Vimperator.
2017-11-21 12:12:25 +00:00
John Beard
44455692e8
Add urlroot (gU) command
...
Opens the root domain of the current tab's URL. E.g.
"https://example.com/page " -> "http://example.com/ "
Includes 'gU' binding (same as Vimperator)
2017-11-21 12:12:15 +00:00
Oliver Blanthorn
eae9cd0dab
Change incrementurl to urlincrement and add bind
2017-11-21 11:05:40 +00:00
Koushien
5bbb133c5c
Begin transitioning completions refactor
...
Start laying groundwork for buffersall excmd
2017-11-21 05:15:52 +00:00
Koushien
a389d6dde3
Move buffers to general completion system.
...
User shouldn't notice any difference besides:
* removing "buffer " from cli clears buffers
* retyping "buffer " repopulates buffers
* text after "buffer " filters with smartcase.
We no longer directly set completion's innerHTML.
2017-11-21 05:15:52 +00:00
D.B
0a0c31230e
add gobble mode and quickmarks
2017-11-20 23:23:25 +00:00
Colin Caine
71484e9873
excmds: documentation and minor changes
2017-11-19 06:16:33 +00:00
Colin Caine
01c40840aa
excmds: map and document hint -b
2017-11-18 03:10:58 +00:00
Oliver Blanthorn
49bbcb7fc9
Add rudimentary ignore mode bound to I
2017-11-15 00:03:34 +00:00
Oliver Blanthorn
0c08202822
excmd: O/W/T use current URL
2017-11-09 21:12:15 +00:00
Oliver Blanthorn
89ad072d8d
Fix #49 by partially reverting 927e19c
2017-11-09 10:23:36 +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
fad94a697e
parsers: split into real modules
...
This is to fix an issue with multiple imports of typescript namespaces.
2017-11-09 05:44:47 +00:00