aboutsummaryrefslogtreecommitdiff
path: root/TODO.org
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-07-23 11:23:28 +0530
committerAkshay Nair <phenax5@gmail.com>2025-07-23 11:23:28 +0530
commit345320bb705d776afefdc9602b7d9dc05863403f (patch)
tree9deecbae7f9bd6f60f84332d3ffad12ea9e03850 /TODO.org
parent9a634f133d920da0dfc9dd7e8e5a675fd7c7af26 (diff)
downloadnull-browser-345320bb705d776afefdc9602b7d9dc05863403f.tar.gz
null-browser-345320bb705d776afefdc9602b7d9dc05863403f.zip
Update dmenu to use input text instead of selection
Diffstat (limited to '')
-rw-r--r--TODO.org30
1 files changed, 11 insertions, 19 deletions
diff --git a/TODO.org b/TODO.org
index 6de3412..d51d23c 100644
--- a/TODO.org
+++ b/TODO.org
@@ -1,6 +1,6 @@
** Usable
- [-] Tests for api
-- [ ] Permission list/allow/deny api
+- [ ] Permission list/allow/deny lua api
- [ ] Fullscreen
- [ ] Zoom in/out
- [ ] Run JS in page (web.view.eval_js())
@@ -11,6 +11,7 @@
** Bugs
- [ ] INVESTIGATE: Check why urlchanged doesnt fire for first url open sometimes
- [ ] INVESTIGATE: Segfault on close sometimes
+- [ ] API's don't validate types. (type conversion segfaults)
** Next
- [ ] Configuration validation
@@ -91,24 +92,15 @@ web.search.get_search_text()
web.search.current()
web.search.total()
-web.keymap.set('n', '/', function()
- dmenu.input({ prompt = 'Search:' }, function(err, input)
- if err or not input then return end
- web.search.set_search_text(input)
- end)
-end)
-web.keymap.set('n', 'n', function() web.search.next() end)
-web.keymap.set('n', 'p', function() web.search.prev() end)
-
-web.event.add_listener('SearchChanged', {
- callback = function()
- local label =
- web.search.get_search_text() .. ': ' .. web.search.current() .. '/' .. web.search.total()
- -- CALL notify-send
- -- OR inject js into view to show ui
- end,
+web.decorations.configure('left', {
+ url = 'https://something.com',
+ size = 100,
})
+local sidebar_decoration = web.decorations.left()
+web.decorations.delete(sidebar_decoration)
+web.decorations.hide(sidebar_decoration)
-web.view.open_devtools()
-web.view.open_devtools(2)
+web.decorations.configure('top', { size = 28 })
+local tabline_decoration = web.decorations.top()
+web.view.set_html('<div>Hello world</div>', { view_id = tabline_decoration.view_id })
#+end_src