mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Add Colin's design notes.
This commit is contained in:
parent
d8476f6101
commit
5db5882f8e
1 changed files with 28 additions and 0 deletions
28
design.md
Normal file
28
design.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Webextension modules we might need:
|
||||
|
||||
* keyboard (not yet existent)
|
||||
* storage (.vimperatorrc)
|
||||
* tabs
|
||||
* history (for auto completion of open, etc)
|
||||
* bookmarks (auto completion, obvious)
|
||||
* windows (buffers)
|
||||
* webNavigation (autocmds) - maybe content script would just do this for us.
|
||||
|
||||
## Stuff we want to do that I know how to do:
|
||||
|
||||
Show hints:
|
||||
For each link in viewport (how to restrict to viewport?):
|
||||
Add a <p> element styled to appear on top of it
|
||||
Listen for keystrokes.
|
||||
Does vimperator just go for <a> tags? I think it probably knows about elements that can be clicked for other effects.
|
||||
Change tab
|
||||
tabs.update(tabtodisplay, {active: true})
|
||||
Change window focus
|
||||
windows.update(windowtofocus, {focused: true})
|
||||
|
||||
## Stuff I don't know how to do:
|
||||
|
||||
Use promises properly.
|
||||
Use promises from a sane language (coffeescript, livescript, elm, etc).
|
||||
Find promises to cancel their chain.
|
||||
Communication between background and content scripts.
|
Loading…
Add table
Reference in a new issue