Commit graph

28 commits

Author SHA1 Message Date
Oliver Blanthorn
554bbe41f5
Merge branch 'master' of github.com:cmcaine/tridactyl into caput-theme-mk2 2018-05-20 18:20:46 +01:00
Colin Caine
45181d0c50 Fix commandline not appearing on ImageDocuments.
DOMContentLoaded is never fired for ImageDocuments and
document.readyState doesn't behave the way we want.

Turns out you can just append immediately, though, so we do that.
2018-05-20 17:54:29 +01:00
Bruno Oliveira
0feaa3d2ca
Improve Tridactyl theming capabilities 2018-05-20 16:22:46 +01:00
Colin Caine
f4a9fdfc64 Never throw when opening commandline
This is a hack to stop logger.error loops on pages
that cannot open the commandline (e.g. svgs).
2018-05-17 21:42:47 +01:00
Colin Caine
92cbb22992 Fix error reporting loop with noiframeon 2018-04-26 01:10:33 +01:00
Colin Caine
fafb8f4017
Add setting noiframeon for servicenow etc 2018-04-25 20:30:05 +01:00
Colin Caine
cd868ca04c
Load iframe more lazily 2018-04-25 20:29:47 +01:00
Oliver Blanthorn
095ce771ea
Formatting: run all typescript through prettier 2018-04-13 19:28:03 +01:00
glacambre
7b2c1a0a6a
commandline_content.ts: Add executeWithoutCommandLine function
This function accepts a callback as argument that will be called once
the commandline has been removed from the page. After the callback has
been executed, the commandline is re-inserted in the page.
2018-03-17 12:40:54 +01:00
glacambre
119758454f
Add cleanslate.css 2018-03-04 14:15:26 +01:00
Colin Caine
ff7eccdc54 Move commandline iframe out of body as well 2018-02-18 22:55:17 +00:00
Colin Caine
53e51497e7 logging: rewrite in OOP style 2017-12-30 00:46:26 +00:00
Colin Caine
f398895dce logging: introduce convenience functions 2017-12-29 23:58:23 +00:00
Anran
20edc42b3e cmdline iframe css refactor 2017-10-29 14:01:09 +00:00
Colin Caine
77062932f7 review: minor bugfixes and changes to clipboard 2017-10-28 13:42:54 +01:00
Anran
09e5281a8d move clipboard to background 2017-10-28 19:20:31 +08: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
e0cebf6936 perf: Load content script even earlier
Bonus: load on about:blank, about:srcdoc as well
2017-10-23 02:57:39 +01:00
Oliver Blanthorn
242fcce1c3
Change commandline and completions to look more like Vimperator 2017-10-22 11:08:43 +01:00
Koushien
dca6694c0e
Implement minimal :buffer
* prev tab ('#') isn't always the previously
selected tab, i.e., even if you remotely close
the previously selected tab, since we determine
based on time of last access, we always have a
previous tab as long as there is more than one
tab in the window.

* related, displayed prev tab could be wrong if
user unfocuses commandline, switches tabs via
other means and returns to the already opened
:buffer. Possible solution could be to share the
variable so it is only set when tabs are listed.

* Sometimes favicons initially fail to load but
reappear in the commandline when you switch to
the tab. Appears unrelated to whether the tab
is discarded (unloaded in memory).

* Unsuccessfully adding rules for <a> tags.
Beside incompetence, Firefox might be overriding?
2017-10-14 11:01:32 -07:00
Koushien
49d26dd33d
[WIP] Implement :buffer
Current issue: why is changecompletion writing to
the input field?
2017-10-09 12:09:23 -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
Colin Caine
50241c91d2 src: hide commandline after exec 2017-10-05 15:27:45 +01:00
Oliver Blanthorn
dca17270ed
Merge branch 'master' of github.com:cmcaine/tridactyl 2017-10-05 12:34:18 +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
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
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