Commit graph

30 commits

Author SHA1 Message Date
glacambre
be8251d3b8
tridactyl.d.ts: Add pageX and pageY to UIEvent interface 2018-05-27 09:02:30 +02:00
Colin Caine
a883c9ebee Stop typedoc complaining about toBeAll 2018-05-21 01:22:04 +01:00
Anton Vilhelm Ásgeirsson
3fe0f5e1e9
Bypass CSP
Allows Tridactyl to run on places such as raw.github* until Mozilla fix
issue https://bugzilla.mozilla.org/show_bug.cgi?id=1267027.
2018-05-08 18:07:14 +01:00
glacambre
34d8363224
tridactyl.d.ts: Add focus with arguments to HTMLElement interface 2018-04-14 11:05:40 +02:00
Oliver Blanthorn
095ce771ea
Formatting: run all typescript through prettier 2018-04-13 19:28:03 +01:00
glacambre
572b341068
src/tridactyl.d.ts: Add window.eval and exportFunction definitions 2018-03-03 14:19:58 +01:00
Colin Caine
3cae9a5334 Revert "excmd: fix :version"
This reverts commit baa5a9b861.
2017-11-28 17:23:16 +00:00
Colin Caine
baa5a9b861 excmd: fix :version 2017-11-28 16:05:08 +00:00
Colin Caine
ec01dadf27 completions: add fuse.js and html-tagged-template 2017-11-22 21:30:36 +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
85d6eba2b5
Revert "Merge branch 'Koushien-completions'"
This reverts commit 0aa14bb754, reversing
changes made to eae9cd0dab.
2017-11-21 20:28:48 +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
Oliver Blanthorn
fc9b34d08c
Add zoom command 2017-11-15 12:40:26 +00:00
Colin Caine
adfca7cf69 hinting WIP: plumb to background 2017-11-09 05:44:40 +00:00
Colin Caine
446bd0be21 messaging: move more modules to new sys 2017-10-28 05:11:10 +01:00
Colin Caine
8d53fd60eb Rework messaging, key suppression, exmode parser
exmode.parser now converts strings to the types given in excmd
signatures.

Messaging now works in both directions (but I haven't made excmds.ts use
the new system yet. Exercise for the reader (see keydown_* state() for a
simple example)).

keys are now being suppressed, but in a pretty stupid way.

I got fed up of not having proper itertools, or str conversions, so I
wrote some. Others have written them in JS, but they were fun to make.
Only the ones I'm using are tested.
2017-10-23 09:42:50 +01:00
Colin Caine
6185805d42 tsc: move browser.sessions definitions to web-ext-types
excmds.ts had to change so that anonymous func returns bool
2017-10-22 17:03:23 +01:00
Andrzej Pacanowski
b78be56273 enhance :undo logic
restore most recently closed tab in this window unless the most recently closed item was a window
2017-10-22 00:38:49 +01:00
Colin Caine
8897d8929b excmds: Macro-ify excmds_background and content
excmds_background/content are now generated by python. New dependency,
python3!
2017-10-19 04:40:36 +01:00
Oliver Blanthorn
fa51fc2024
Add tabdetach,duplicate and undo commands; fix multi-window bugs 2017-10-16 14:42:12 +01:00
Oliver Blanthorn
ea9806f591
Add proof of concept for buffer filter by text on page 2017-10-15 23:05:41 +01:00
Koushien
9b42a437d9
Compress scrolls, scrollto accept %
Implement Number.clamp to help scrollto
2017-10-06 19:31:10 -07:00
Colin Caine
df3ca534ed src: fix commandline_frame/background messaging
The commandline iframe needs to be messaged with the tabs API, as if
it's a content script.
2017-10-06 04:16:02 +01:00
Colin Caine
bed1109cc9 types: extend type checking 2017-10-06 03:30:51 +01:00
Colin Caine
5964430fe1 Convert to es6 modules
Motivation:

 - Most test frameworks expect modules
 - I'm told they're the future

Changes:

 - Every typescript source file is now an es6 module
 - Build system is now webpack (tho rollup makes nicer outputs)
 - Outputs of buildsystem are one js file per entry point (background,
   content, commandline_frame)
 - These bundled js files are generated by traversing the dependency
   graph of each entry point
2017-10-02 01:17:32 +01:00
Colin Caine
1204206f02 Document interfaces better 2017-09-28 22:39:26 +01:00
Koushien
687aaf9209
Implement different scroll excmds
In addition to scrollByLine and scrollByPage,
an excmd to scroll by half pages is included to
mimic default <C-u> and <C-d> behavior. In a
future revision, it may be preferred to have some
variable V for scroll values that pulls current
window height when called.
2017-09-27 21:10:52 -07:00
Colin Caine
9e57a25aa6 Proof of concept
keyboard API shim written, parser revised, example scrolling excmds
implemented.
2017-09-25 05:00:41 +01:00