Commit Graph

13 Commits (main)

Author SHA1 Message Date
Daniel Barlow 34fb1b2ff4 revisit completer/completion api
A completion is now a table with attributes :text, :widget, :value
A completer returns an array of completions

This means we can now render URL completions with the page title
as well as the URL
2023-01-15 16:55:22 +00:00
Daniel Barlow c1b7c2d777 add back button 2023-01-01 22:22:40 +00:00
Daniel Barlow 64d4dfe2ff hook up progress-bar, uri display
the road to callback hell is plagued with good intentions:
I am not unwilling to revisit this code if it gets any more gnarly
2023-01-01 00:11:01 +00:00
Daniel Barlow ec391a9e57 delete unused params 2022-12-31 23:24:38 +00:00
Daniel Barlow 7065b89c92 visit-location defaults to current 2022-12-31 17:33:20 +00:00
Daniel Barlow daa244c0b3 add switch-to-buffer command 2022-12-31 16:46:34 +00:00
Daniel Barlow e4ed51e137 add gtk stuff to show completions as user types 2022-12-31 16:46:34 +00:00
Daniel Barlow 5069e6aff1 move command state into per-frame table
lots of dependent changes here, unfortunately

- get rid of Buffer.current (it's per-frame now)
- in define-command, functions providing default parameter values
   now accept frame as parameter
- in keymaps, parameter values are functions that accept frame as
   parameter
2022-12-27 12:25:50 +00:00
Daniel Barlow 25d31e0262 use keymap to choose command to invoke 2022-12-22 22:42:45 +00:00
Daniel Barlow 512e8cad2f remove debug print 2022-12-21 21:12:21 +00:00
Daniel Barlow 0e103a673c first pass at commands with args
very rudimentary ui, and only handles string args
2022-12-21 15:26:24 +00:00
Daniel Barlow 87448bd5ee add visit-location command
though it does hardcode the URL, making it less than generally useful
2022-12-20 11:14:27 +00:00
Daniel Barlow a34e63877d add buffer 2022-12-20 10:34:37 +00:00