Commit graph

19 commits

Author SHA1 Message Date
glacambre
dab97fea10 src/{controller,excmds}.ts: Fix endless repeat, implement more intuitive behavior. 2017-12-06 16:31:53 +00:00
glacambre
e61358b63f src/{config,controller,excmds,state}.ts: Implement dot repeat. 2017-12-06 16:31:53 +00:00
Zhong Jianxin
01221f3052 Add inputmode
- Add `focusinput -n` and `focusinput -N`
- Press `gi` to focus input and enter inputmode
- When in inputmode, `Tab` to focus input after last focussed one, `Shift+Tab`
  to focus input before last focussed one
2017-12-05 22:12:34 +00:00
Colin Caine
9683e11f70 Tidy up gobble mode. Re-use key classification. 2017-11-20 23:23:25 +00:00
D.B
0a0c31230e add gobble mode and quickmarks 2017-11-20 23:23:25 +00:00
Oliver Blanthorn
cf684c7935
Fix #86: Add metakey to list of ignored keys in normal mode for Macs 2017-11-20 09:21:07 +00:00
Colin Caine
75ede02bc6 keydown: improve suppression logic 2017-11-19 02:41:01 +00:00
Oliver Blanthorn
49bbcb7fc9
Add rudimentary ignore mode bound to I 2017-11-15 00:03:34 +00:00
Colin Caine
d8e1eb4506 insert: Add 'Escape' bind 2017-11-09 21:01:57 +00:00
Colin Caine
927e19c818 hinting: First working version
state.ts also reworked into a sexy new machine. Check it out!
2017-11-09 05:44:48 +00:00
Colin Caine
fad94a697e parsers: split into real modules
This is to fix an issue with multiple imports of typescript namespaces.
2017-11-09 05:44:47 +00:00
Colin Caine
adfca7cf69 hinting WIP: plumb to background 2017-11-09 05:44:40 +00:00
Oliver Blanthorn
37119e510a
Dirty workaround to allow ^L, ^G to be passed through to Firefox correctly 2017-11-04 18:03:58 +00: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
bed1109cc9 types: extend type checking 2017-10-06 03:30:51 +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
24fbd85a75 src: log errors from exmode.parser to browser console 2017-10-05 13:26:28 +01:00
Oliver Blanthorn
38923d8876
Add sketch of insert mode 2017-10-02 21:09:10 +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