Commit graph

124 commits

Author SHA1 Message Date
Colin Caine
dd757fbef4 tests: add jest 2017-10-05 01:53:02 +01:00
Colin Caine
7b789350df src: consistently use message.type 2017-10-04 23:58:30 +01:00
Colin Caine
72ae2f0559 doc: record find api 2017-10-04 23:56:03 +01:00
Koushien
8cade7860a Check if an attempt at including scheme was made
Otherwise default to http://
2017-10-02 19:30:38 +01:00
Koushien
a940250581 Implement scroll(left|right|to(top|bottom))
Generalize scrollBy
2017-10-02 19:02:09 +01:00
Colin Caine
9b04355874 Simplify readme 2017-10-02 18:54:34 +01:00
Colin Caine
1c7c4bcbe3 Add travis badge to readme 2017-10-02 10:10:44 +01:00
Colin Caine
9c445a9c9d Remove old build system, document new 2017-10-02 10:02:15 +01:00
Oliver Blanthorn
26a8dd7273
Fix #11 and build directory errors
Fixes a small problem where if web-ext was started before make was run,
web-ext would not spot the changes.
2017-10-02 09:25:47 +01:00
Colin Caine
6b7ce5cdaa Minimal travis.yml 2017-10-02 01:58:09 +01:00
Colin Caine
496e33bd86 Share minimal git hooks 2017-10-02 01:58:09 +01:00
Colin Caine
127f612c6d Expand notes on webext APIs 2017-10-02 01:29:58 +01:00
Colin Caine
cd9ba01d79 Merge branch 'feature-webpack-build' 2017-10-02 01:28:28 +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
Oliver Blanthorn
512b25260e
Correct tabopen to open on newtab with focus in location bar if no address given 2017-10-01 12:50:30 +01:00
Oliver Blanthorn
cbed22bede
Add note to remind us to stop parser stealing keys from insert mode 2017-10-01 11:06:09 +01:00
Oliver Blanthorn
3f77490164
Add tabopen command 2017-09-30 18:08:31 +01:00
Oliver Blanthorn
861a0aae03
Add reload commands
I also made getnexttabs asynchronous, because I suspect it will have to
be, eventually.
2017-09-30 17:58:56 +01:00
Oliver Blanthorn
b468747333
Add getactivetabid function as it was used a lot 2017-09-30 17:49:02 +01:00
Oliver Blanthorn
23476e052c
Add dummy function for finding next n tabs 2017-09-30 17:44:32 +01:00
Oliver Blanthorn
a7d358a288
Add tabclose functionality 2017-09-30 17:36:36 +01:00
Oliver Blanthorn
f777e9d396
Add key commands for history 2017-09-30 17:18:05 +01:00
Colin Caine
0945b4adeb Update build system
Use local typescript and github web-ext-types.
2017-09-30 12:35:15 +01:00
Koushien
da39cf657b Correct ExCmd names (tabnext, tabprev) 2017-09-30 05:42:03 +01:00
Colin Caine
2d00a937fb Stop processing special keys in normal mode. 2017-09-30 05:07:57 +01:00
Colin Caine
c1fc9f3cfa Remove manual list of ExCmds 2017-09-30 05:00:05 +01:00
Koushien
f2ef0559e5 Implement tabnext, tabprev
- Default to 1 (literally next), implies number.
 - Rename prevtab to match naming convention.
2017-09-30 04:31:19 +01:00
Colin Caine
419854c616 Unprofessionally large commit
- Implement just about working commandline
 - Clean up excmd code
 - Move controller logic out of parsing
 - Document workarounds of webext problems
2017-09-29 18:29:36 +01:00
Colin Caine
49c15c2257 Fix typo/bug 2017-09-28 22:39:41 +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
dcdef5f812 Initial sketch at commandline. 2017-09-28 04:51:18 +01:00
Colin Caine
5e018597bf Fix bug in scrollup 2017-09-28 02:29:39 +01:00
Colin Caine
5368b79a55 Ignore build stuff. 2017-09-25 05:38:38 +01:00
Colin Caine
c3f7d337d6 Add note about documentation to readme. 2017-09-25 05:31:45 +01:00
Colin Caine
d8033adccc Add build instructions to readme 2017-09-25 05:25:24 +01: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
Colin Caine
62198f9770 Record npm dependencies. 2017-09-25 00:07:46 +01:00
Colin Caine
5a1f6a84c9 Tweak build scripts 2017-09-24 23:50:23 +01:00
Colin Caine
1a2c684d30 Reorganise repo 2017-09-24 23:38:57 +01:00
Oliver Blanthorn
3aaaa81e6f
First attempt at modules 2017-09-21 14:30:36 +01:00
Oliver Blanthorn
6131677e76
adapt make_and_watch to typescript 2017-07-17 23:00:32 +01:00
Oliver Blanthorn
06e30c28f8
Add event handler to content.ts
This is used for communication with the background script.
2017-07-16 17:32:44 +01:00
Oliver Blanthorn
22b01774ea
Delete irrelevant litcoffee flies 2017-07-16 16:52:47 +01:00
Oliver Blanthorn
32491df069
fix manifest 2017-07-16 16:42:55 +01:00
Oliver Blanthorn
87fc6b5cf1
mvp for first go in firefox 2017-07-16 16:28:17 +01:00
Oliver Blanthorn
e081ede504
Wrap parser in try/catch + separate out completion function 2017-07-09 17:08:40 +01:00
Oliver Blanthorn
c0d394e141
Add potential fix for special keys.
The main downside to this is that it makes changing the ex_strs they are
bound to slightly harder, and that the character chosen doesn't show up
in the one true font, Dina.
2017-07-09 10:00:06 +01:00
Oliver Blanthorn
ceb6e32bbd
Add initial function calls from strings & discard useless keys 2017-07-08 20:44:52 +01:00
Oliver Blanthorn
7a9c8355da
Initial parsing attempt 2017-07-08 18:39:34 +01:00