about summary refs log tree commit diff stats
path: root/res/chawan.html
Commit message (Collapse)AuthorAgeFilesLines
* Fix typobptato2024-05-111-1/+2
|
* js: fix various leaks etc.bptato2024-05-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously we didn't actually free the main JS runtime, probably because you can't do this without first waiting for JS to unwind the stack. (This has the unfortunate effect that code now *can* run after quit(). TODO: find a fix for this.) This isn't a huge problem per se, we only have one of these and the OS can clean it up. However, it also disabled the JS_FreeRuntime leak check, which resulted in sieve-like behavior (manual refcounting is a pain). So now we choose the other tradeoff: quit no longer runs exitnow, but it waits for the event loop to run to the end and only then exits the browser. Then, before exit we free the JS context & runtime, and also all JS values allocated by config. Fixes: * fix `ad' flag not being set for just one siteconf/omnirule * fix various leaks (since leak check is enabled now) * use ptr UncheckedArray[JSValue] for QJS bindings that take an array * allow JSAtom in jsgetprop etc., also disallow int types other than uint32 * do not set a destructor for globals
* config: improve input systembptato2024-03-261-2/+2
| | | | as described in <https://todo.sr.ht/~bptato/chawan/6>
* pager: add "save link", "save source"; change & document some keybindingsbptato2024-03-201-2/+9
| | | | | | | | | * `s{Enter}' now saves link, and `sS' saves source. * Changed ;, +, @ to g0, g$, gc so that it's somewhat consistent with vim (and won't conflict with ; for "repeat jump to char") * Changed (, ) to -, + so that it doesn't conflict with vi's "previous/next sentence" (once we have it...) * Add previously missing keybindings to about:chawan
* buffer: add markURLbptato2024-03-191-0/+1
| | | | Useful when browsing plaintext files; w3m has it too.
* pager: add "open in editor" keybinding (sE)bptato2024-03-141-0/+1
| | | | | | only for source for now, rendered document is a bit more complicated (also, get rid of useless extern/editor module)
* rudimentary support for <video>, <audio>bptato2024-03-131-1/+1
| | | | | we just treat them as img tags. lazy, but works suprisingly well -- so long as the server sends us a Content-Type, anyway.
* config: add yI for yanking image URLsbptato2024-02-271-1/+2
|
* buffer: add image viewer supportbptato2024-02-271-0/+2
|
* config: use `yu` for copying URLsbptato2024-02-131-1/+1
| | | | | | | | | | | It's my mistake; it should have been this way all along. `u` is peek URL, so `yu` should copy the same URL. And of course `c` displays a different URL than what is being copied. Ouch. I would make `yc` copy the current page's URL too (instead of M-y...), but that would make things way too confusing. Maybe sometime in the future, when I unlearn `yc`.
* Add command to yank link under cursor (yc)bptato2024-01-291-0/+2
|
* about:chawan: fix some descriptionsbptato2024-01-191-2/+2
|
* pager: add marksbptato2023-12-091-0/+3
| | | | | Default is vi-style, but w3m-style marks work as well; see bonus/w3m.toml.
* pager: add `{', `}'; document externIntobptato2023-12-091-0/+1
| | | | | | | | { & } acts like in vi (except the cursor is not moved to the line beginning). No reason to leave externInto undocumented, as it is even used in the default config.
* pager, container: add text selection/copyingbptato2023-12-031-1/+4
| | | | | | | | | | * Add select & copy selection functionality to container * Fix bug in generateSwapOutput where output could be misplaced because of zero-width cells * Add fromJSPromise, call runJSJobs in every iteration of the headed event loop * "await" pager actions that output a promise * Change default view source keybinding to `\'
* Update about:chawanbptato2023-11-231-1/+2
| | | | | * clarify search keybinding * list web search keybinding
* update chawan.htmlbptato2023-11-171-48/+60
|
* about:chawan: fix markupbptato2023-10-231-8/+8
|
* chawan.html: add missing linebreakbptato2023-10-051-2/+2
| | | | needed to avoid the logo overwriting text
* more vi/m compatbptato2023-10-011-1/+1
|
* Improve vi/m compat in scrollingbptato2023-10-011-1/+3
|
* Add M-p as "load page on clipboard"bptato2023-09-251-0/+2
|
* improve about:chawan pagebptato2023-09-201-17/+60
|
* Update visual home page, use name consistentlybptato2022-12-161-0/+31