Commit Graph

9 Commits (main)

Author SHA1 Message Date
Daniel Barlow a5a65006ca make keyboard completions work
1. When adding a button to flowbox, the flowbox widget interposes a
flowboxchild between the two, which can receive events and so becomes
part of the tab order. this is why our buttons weren't getting
activated - they weren't focused even though they looked focused.  So,
use labels instead of buttons for completions

2. For some reason I don't understand, flowboxchild widgets receive
:activate *only* on keyboard activation. So instead of using it,
we connect to :child-activated on the flowbox.

3. Setting widget:on_foo *adds* a handler to the widget instead of
replacing what was previously there. There is no nice way to remove
handlers from a widget either. Because we need a new
on_child_activated handler every time the completions change,
the only way I can see to achieve this is to create the flowbox
afresh on each keystroke instead of creating it once when the
frame is created
2023-01-17 21:54:31 +00:00
Daniel Barlow d62b9dea3e repair command completions 2023-01-15 18:29:46 +00:00
Daniel Barlow d962dd7c41 trim outdated stuff 2023-01-15 18:23:10 +00:00
Daniel Barlow 055e8b792f hide commander and print messages in echo area 2023-01-01 19:12:54 +00:00
Daniel Barlow b1bdc326ef WIP popup commander 2023-01-01 16:49:15 +00:00
Daniel Barlow 862780878c clean up the spew file a bit 2023-01-01 00:15:26 +00:00
Daniel Barlow a5612fce2a some musing about switch-to-buffer 2022-12-26 14:48:53 +00:00
Daniel Barlow bdd4507692 we are amused 2022-12-23 19:45:58 +00:00
Daniel Barlow 38c71c347e initial commit 2022-12-19 18:19:13 +00:00