Commit graph

2927 commits

Author SHA1 Message Date
Oliver Blanthorn
340ff45e86
Make commandline look more like Vimperator's 2017-11-24 18:47:16 +00:00
Oliver Blanthorn
56c7b0ceff
First working version of next 2017-11-24 18:46:49 +00:00
Colin Caine
eb7d1b16dd build: Fix hook for non-arch users 2017-11-24 11:12:42 +00:00
Oliver Blanthorn
dbecc16906
Merge pull request #124 from Bzly/patch-1
Properly fix monospace on Windows bug
2017-11-24 08:40:24 +00:00
Bzly
e973a5e965
Properly fix monospace on Windows bug
The actual issue (workaround committed in #119) was that font-family names should _not_ be quoted.
2017-11-24 00:01:55 +00:00
Oliver Blanthorn
a04c693e68
Start next/prev functions for completions 2017-11-23 21:48:48 +00:00
Oliver Blanthorn
7a747312ee
Start work on history completions 2017-11-23 19:55:46 +00:00
Oliver Blanthorn
aeb3fa167e
Fix #68 2017-11-23 19:55:45 +00:00
Oliver Blanthorn
949b3848a5
Merge branch 'master' of github.com:cmcaine/tridactyl into chocolateboy-improve-pagination 2017-11-23 15:54:16 +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
Oliver Blanthorn
cdd928caa2
Fix some minor CSS errors 2017-11-23 11:15:52 +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
0a4bdc4b62
Merge branch 'master' of github.com:cmcaine/tridactyl into johnbeard-imghint 2017-11-23 10:21:40 +00:00
Oliver Blanthorn
9fe7f1e6f4
Merge pull request #119 from Bzly/patch-1
Update commandline.css
2017-11-23 10:19:03 +00:00
Oliver Blanthorn
1ecf2c9bc5
Merge branch 'master' of github.com:cmcaine/tridactyl into johnbeard-imghint 2017-11-23 10:01:54 +00:00
Bzly
ae09ce2b92
Update commandline.css
MS still doesn't know what monospace is. Pls not Times New Roman in my buffers.
2017-11-23 09:46:17 +00:00
Colin Caine
94d08f1fc7 release: 1.5.1 2017-11-23 01:56:56 +00:00
Colin Caine
27aa53a3e0 completions: css MS needs Courier 2017-11-23 01:56:04 +00:00
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