Commit graph

642 commits

Author SHA1 Message Date
Oliver Blanthorn
c66ca2ab62
Merge branch 'master' of github.com:cmcaine/tridactyl into ollef-URIEncode 2017-11-25 16:14:05 +00:00
Oliver Blanthorn
ccd0c6a9ab
Merge branch 'master' of github.com:cmcaine/tridactyl into johnbeard-hintfocus 2017-11-25 15:23:42 +00:00
Oliver Blanthorn
86662e1dbc
Prevent Firefox from giving focus to omnibar from cmdline 2017-11-25 15:16:08 +00:00
Oliver Blanthorn
88298b7bc9
Move ^j,^m nearer to enter, fix tabs 2017-11-25 15:12:40 +00:00
Arkadiusz Drabczyk
d5eb22e4a8 Add C-j and C-m keybindings 2017-11-25 16:03:53 +01:00
Oliver Blanthorn
bf8d65f14d
Only add visible items to HTML, make update more async
Introduces an issue where the commandline cannot be seen until a
character is typed on *open.
2017-11-25 13:00:15 +00:00
Oliver Blanthorn
fae01efc0c
Make completion choose from 100 history items since records began 2017-11-25 12:44:56 +00:00
Oliver Blanthorn
cdad491e5f
Add padding to tab decorations on :buffer 2017-11-25 12:10:16 +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
Olle Fredriksson
4870a967ff URI-encode search query string
This enables searching for e.g. 'C#'.

Also remove a now no longer valid comment.
2017-11-24 23:30:24 +01:00
Oliver Blanthorn
c1c2806082
Merge branch 'historycompletions' of github.com:cmcaine/tridactyl into historycompletions 2017-11-24 19:36:58 +00:00
Oliver Blanthorn
ef3bb11654
Add shift-tab bind for completion 2017-11-24 19:17:51 +00:00
Oliver Blanthorn
a76f052042
Add shift-tab bind for completion 2017-11-24 19:00:26 +00:00
Oliver Blanthorn
535c79532b
Merge branch 'master' of github.com:cmcaine/tridactyl into historycompletions 2017-11-24 18:53:36 +00:00
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