Commit graph

956 commits

Author SHA1 Message Date
Oliver Blanthorn
3147a49082
Add rudimentary $web_search_provider support
Currently only does single words. Multi-word support coming once
@cmcaine fixes commandline parser.
2017-10-08 16:46:29 +01:00
Oliver Blanthorn
7d27755307
Add rudimentary $web_search_provider support
Currently only does single words. Multi-word support coming once
@cmcaine fixes commandline parser.
2017-10-08 16:46:29 +01:00
Colin Caine
24c7dd9c40 src: Clamp percentage to 0-100 2017-10-08 16:31:15 +01:00
Colin Caine
eb06c64be3 src: Fix scrollto. 2017-10-08 16:24:29 +01:00
Koushien
9b42a437d9
Compress scrolls, scrollto accept %
Implement Number.clamp to help scrollto
2017-10-06 19:31:10 -07:00
Colin Caine
8b13b3e7a7 src: revert bad change to msgFilteredTabs() 2017-10-06 18:03:45 +01:00
Koushien
633231d381
Append space to value changecommand fills
Quick hack.
2017-10-05 22:30:09 -07:00
Koushien
cff8d774f4
Expose scrollto, add winopen, pin and tabmove
The tabmove function could be made more concise,
I'm sure, but initializing m to -1 did not have
the desired effect of no arguments being passed
-> moving tab to last in index.
2017-10-05 22:29:30 -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
Oliver Blanthorn
07c3688f8d Bonus late night commit
All the mistakes are Colin's fault
- Generic listener
- Send messages to command line
- ^ doesn't work unless frame is opened in new tab
2017-10-06 03:40:17 +01:00
Oliver Blanthorn
4dc218084d Add open excmd 2017-10-06 03:40:17 +01:00
Colin Caine
f990bd0134 src: stop insertmode parser throwing 2017-10-06 03:30:51 +01:00
Colin Caine
bed1109cc9 types: extend type checking 2017-10-06 03:30:51 +01:00
Colin Caine
b37743adaf src: normalize indentation 2017-10-06 03:30:51 +01:00
Oliver Blanthorn
61d24e918f
Ensure commandline hides even if command deactivates page 2017-10-05 21:38:16 +01:00
Colin Caine
7736042ea3 src: fix tsc -d; use insert mode for inputs
The input detection is very naive at the moment. Fix soon.
2017-10-05 18:15:27 +01:00
Colin Caine
50241c91d2 src: hide commandline after exec 2017-10-05 15:27:45 +01:00
Colin Caine
24fbd85a75 src: log errors from exmode.parser to browser console 2017-10-05 13:26:28 +01:00
Oliver Blanthorn
dca17270ed
Merge branch 'master' of github.com:cmcaine/tridactyl 2017-10-05 12:34:18 +01:00
Oliver Blanthorn
75a33eb654
Include some extra files to stop Colin whining 2017-10-05 12:24:53 +01:00
Colin Caine
e2ccd3da4a tests: Update package.json, shorten test runtime 2017-10-05 03:55:42 +01:00
Colin Caine
07bcf762d0 tests: Update and fix example tests 2017-10-05 03:42:55 +01:00
Colin Caine
42e8042d8f src: fix #7, experiment with tests 2017-10-05 02:23:15 +01:00
Colin Caine
7b789350df src: consistently use message.type 2017-10-04 23:58:30 +01:00
Oliver Blanthorn
89c948b619
Fix lack of focus in prev commit 2017-10-04 21:51:55 +01:00
Oliver Blanthorn
b7b4b940ae
Make commandline show only after : is pressed
I have also attempted to make the commmand line hide when it is not in
focus, but had no luck.
2017-10-04 21:35:52 +01:00
Oliver Blanthorn
38923d8876
Add sketch of insert mode 2017-10-02 21:09:10 +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
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
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