Commit graph

85 commits

Author SHA1 Message Date
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
c236ecdf7a
Add command to reload all pages at once 2017-11-22 16:59:58 +00:00
Oliver Blanthorn
8802a7f265
Revert "Add tabclosethenprev to switch to last accessed tab"
This is not needed as `composite tabclose | buffer #` has the same
affect.

This reverts commit d448d10e27.
2017-11-22 13:20:54 +00:00
Oliver Blanthorn
b1a4c5db38
Add documentation for bmark 2017-11-22 12:24:37 +00:00
Oliver Blanthorn
1af85b293f
Add keybind documentation to help page, link to help from newtab 2017-11-22 12:24:37 +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
8f9fd34639
Merge pull request #104 from aplaice/master
Add reader excmd (toggle reader mode)
2017-11-22 10:29:50 +00:00
Oliver Blanthorn
d448d10e27
Add tabclosethenprev to switch to last accessed tab 2017-11-21 22:00:11 +00:00
Adam Plaice
895cfc6291 Add reader excmd (toggle reader mode)
It is already bound to "gr".

Unless and until the keyboard api is ready or Firefox allows
webextensions to inject scripts into the very security-sensitive
about:reader context, this will only switch on reader mode. One
can get out of reader mode, by pressing <Alt-←>.

Once one of the above conditions is met, the toggling should work
without any further changes.
2017-11-21 21:13:11 +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
John Beard
8f8982cde1
Add incrementurl command
Increments the last number in a URL by a given step (positive or
negative)

Also includes a url_util helper module and some tests for it

Logic taken from vimperator browser.js:17
2017-11-21 11:05:40 +00:00
Koushien
cf620959ec Do not merge: quick WIP
In case I get hit by a bus or something.
Reminder to myself to rebase next commit on
previous patch for some coherency.
2017-11-21 05:15:52 +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
Colin Caine
a0fc55fd9f fix race condition breaking quickmarks 2017-11-21 03:30:16 +00:00
Colin Caine
053d613527 excmd: document gobble, quickmarks 2017-11-20 23:32:24 +00:00
Colin Caine
9683e11f70 Tidy up gobble mode. Re-use key classification. 2017-11-20 23:23:25 +00:00
D.B
0a0c31230e add gobble mode and quickmarks 2017-11-20 23:23:25 +00:00
Colin Caine
d286e36c55
Merge branch 'master' into patch-1 2017-11-20 05:22:45 +00:00
Colin Caine
ba99fdaf80 excmd: x-www-form-urlencode query strings
Fixes #83.
2017-11-20 01:11:38 +00:00
Colin Caine
b2a35c090d excmd: fix wikipedia search url 2017-11-20 01:08:26 +00:00
Philipp
5b3699309c
Add startpage search engine
I added startpage, a very popular search engine,  to the list of search engines.
2017-11-19 21:00:58 +01:00
Colin Caine
de1cc83584 fix: Turn buffer completions back on again
I forgot we still used this old system!
2017-11-19 08:28:07 +00:00
Colin Caine
241bccda7e hinting: Move mode changes inside 2017-11-19 07:57:30 +00:00
Colin Caine
71484e9873 excmds: documentation and minor changes 2017-11-19 06:16:33 +00:00
Colin Caine
23f064a9bc keydown: deprecate old suppression system 2017-11-19 03:22:59 +00:00
Colin Caine
9cb47d559b excmd: Add composite command
Deprecate this later.
2017-11-18 13:47:10 +00:00
Colin Caine
01c40840aa excmds: map and document hint -b 2017-11-18 03:10:58 +00:00
Colin Caine
9e75cbed3f hinting: allow hints to open in bg 2017-11-18 01:51:46 +00:00
Oliver Blanthorn
6d7262dd47
Add clipboard tabopen, make clipboard use internal open/tabopen 2017-11-16 19:58:33 +00:00
Oliver Blanthorn
fc9b34d08c
Add zoom command 2017-11-15 12:40:26 +00:00
Colin Caine
bf6ac3e618 completions: fix html exec 2017-11-15 00:42:10 +00:00
Oliver Blanthorn
49bbcb7fc9
Add rudimentary ignore mode bound to I 2017-11-15 00:03:34 +00:00
Oliver Blanthorn
f3a16da6bd
Change Map to use array syntax, add UK variants 2017-11-14 23:31:08 +00:00
troydm
709471a9ba most popular search engines added 2017-11-15 00:55:51 +02:00
Oliver Blanthorn
2738bf1e59
Standardise behaviour of empty url for :winopen with :tabopen 2017-11-14 12:23:01 +00:00
Oliver Blanthorn
eb416699f0 excmd: Fix O/W/T 2017-11-09 21:22:02 +00:00
Oliver Blanthorn
0c08202822 excmd: O/W/T use current URL 2017-11-09 21:12:15 +00:00
Colin Caine
d8e1eb4506 insert: Add 'Escape' bind 2017-11-09 21:01:57 +00:00
Oliver Blanthorn
c2e744ec11
Make :bind more readable 2017-11-09 12:13:08 +00:00
Colin Caine
3642477b57 excmd: Fix #43 2017-11-09 07:38:24 +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
Oliver Blanthorn
b2ee48ef00
Merge branch 'master' of github.com:cmcaine/tridactyl 2017-11-07 13:27:43 +00:00