Commit graph

509 commits

Author SHA1 Message Date
j
b95af255e4 add pre, code, span to HINTTAGS_text_selectors 2017-11-23 10:46:48 +09:00
Colin Caine
0e56648cdb completions: how 2 css variable. 2017-11-23 01:26:34 +00:00
Colin Caine
f6f25ae00e release: 1.5.0 2017-11-23 01:14:20 +00:00
Colin Caine
d1784c994d hinting: leave hint mode if no hints 2017-11-23 01:10:45 +00:00
Colin Caine
616255c8ea hinting: improve css
Black text on links now important. May remove some transitions (tested and failed on tex.stackexchange)
2017-11-23 01:10:16 +00:00
Colin Caine
2877934cc4 completions: use a table instead
Absolutely positioned elements are absolutely a pain in the arse.
2017-11-23 01:09:10 +00:00
Colin Caine
80db6e7297 build: Check package-lock.json in post-merge, too 2017-11-22 23:06:42 +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
2611f4fe79 cmdline: clear input faster 2017-11-22 23:01:34 +00:00
Colin Caine
6d1117ce77 completions: improve css 2017-11-22 22:31:29 +00:00
Colin Caine
8a44732227 completions:
Done:
	Working completion for buffers
	Substitute values into command line
	Prepare for non-buffers completions
	Wrote too many classes and helper functions

Todo:
	Learn inferno and hopefully simplify
	If not, simplify the main functions so that people can actually
	build for it.
	Define an interface for tabbing through options
	Allow more than one CompletionSource per command
2017-11-22 21:43:29 +00:00
Colin Caine
1e611c70ee debug: more information from covert 2017-11-22 21:30:37 +00:00
Colin Caine
8d771e578c completions 1 2017-11-22 21:30:37 +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
Colin Caine
ec01dadf27 completions: add fuse.js and html-tagged-template 2017-11-22 21:30:36 +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
Colin Caine
e13402159c itertools: fix bug in islice() 2017-11-22 21:30:36 +00:00
Colin Caine
8e18de7495 build: use strict 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
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
9a4c4545aa
Improve zoom type checking (thanks @aplaice!) 2017-11-21 21:07:35 +00:00
Oliver Blanthorn
7d7a9686ad
Fix #101 - run npm install after pull 2017-11-21 20:31:30 +00:00
Oliver Blanthorn
438f1eb203
Merge branch 'master' of github.com:cmcaine/tridactyl 2017-11-21 20:30:40 +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
097e19e16f
Merge pull request #103 from dhutty/patch-1
Answer a FAQ
2017-11-21 20:08:21 +00:00
Oliver Blanthorn
42fc4eb8f9
Merge branch 'master' into patch-1 2017-11-21 19:54:20 +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
Oliver Blanthorn
67d8efbeab
Tweak CSS to make it less offensive 2017-11-21 19:00:47 +00:00
dhutty
ebabb52d04
Answer a FAQ 2017-11-21 13:33:39 -05:00
Oliver Blanthorn
ffaaaf55d7
Merge pull request #100 from johnbeard/parentroot
Add URL parent and root functions (gu and gU)
2017-11-21 17:28:33 +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
Colin Caine
7bbe81f327 completions: works properly, but code expects only one completionsource 2017-11-21 09:14:22 +00:00
Colin Caine
8e48f69c27 completions: another WIP 2017-11-21 05:16:47 +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
Colin Caine
1045eadc0e completions: WIP 2017-11-21 05:15:52 +00:00
Colin Caine
e55d174747 completions: add fuse.js and html-tagged-template 2017-11-21 05:15:52 +00:00