2022-12-23 19:45:58 +00:00
|
|
|
# Braindump
|
2022-12-19 18:19:13 +00:00
|
|
|
|
2022-12-23 19:45:58 +00:00
|
|
|
This is a combination of a thinking-out-loud document and a TODO list.
|
|
|
|
It is not a document of record. You should not expect to derive value
|
|
|
|
from reading it
|
2022-12-19 18:19:13 +00:00
|
|
|
|
2022-12-23 19:45:58 +00:00
|
|
|
tl;dr what if ... a web browser, but tabs were more like emacs buffers?
|
2022-12-19 18:19:13 +00:00
|
|
|
|
|
|
|
## objects/data types
|
|
|
|
|
|
|
|
buffer
|
|
|
|
Buffer.find ;; by name, title, url
|
|
|
|
Buffer.by_name (maybe?)
|
|
|
|
|
|
|
|
buffer has-a webview but it is not shown by default. Later we may
|
|
|
|
add some kind of webview reuse so that invisible and old buffers
|
|
|
|
don't need to have a webview until needed.
|
|
|
|
|
2022-12-23 19:45:58 +00:00
|
|
|
I seem to be using "buffer" and "tab" mostly synonymously
|
|
|
|
|
2022-12-19 18:19:13 +00:00
|
|
|
frame
|
|
|
|
Frame.the-frame
|
|
|
|
frame.set-buffer (buffer)
|
|
|
|
frame.get-buffer => buffer
|
|
|
|
frame.commander - text entry widget
|
|
|
|
frame.actions - container of toolbar buttons
|
|
|
|
|
2022-12-23 19:45:58 +00:00
|
|
|
in future we may be able to split a frame into multiple windows
|
|
|
|
which show different buffers
|
|
|
|
|
2022-12-19 18:19:13 +00:00
|
|
|
location (url)
|
|
|
|
document
|
|
|
|
document element(?)
|
|
|
|
webview
|
|
|
|
lua's standard types
|
|
|
|
|
2022-12-23 19:45:58 +00:00
|
|
|
## next steps
|
|
|
|
|
|
|
|
* change define-command so that the parameters are ordered
|
|
|
|
* display unbound key error
|
|
|
|
* ESC to cancel interactive command
|
|
|
|
* autocomplete command name
|
|
|
|
* parameters with non-string values (e.g. buffer)
|
|
|
|
* show current url when command inactive
|
|
|
|
* show prompts for parameter
|
|
|
|
* multiple buffers
|
|
|
|
- create buffer
|
|
|
|
- list buffers (where does the output go?)
|
|
|
|
- find and switch to buffer
|