Commit Graph

42 Commits (454f9ae094a9b5d210036cf763bbdce4aa1468a2)

Author SHA1 Message Date
Daniel Barlow 454f9ae094 use overmind to restart dying test runners 2022-12-29 17:21:50 +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 dea9d925a5 add lume module 2022-12-27 12:23:24 +00:00
Daniel Barlow dd139c9796 express keymap bindings as [command-name args]
instead of using functions directly. This is so that the
appropriate frame-relevant commander can be used to execure
the command, but also makes the keymaps a little less opaque
2022-12-26 16:53:41 +00:00
Daniel Barlow a5612fce2a some musing about switch-to-buffer 2022-12-26 14:48:53 +00:00
Daniel Barlow bbd67b3a16 make entry widget a file-scoped local 2022-12-26 14:48:53 +00:00
Daniel Barlow 6efbc34576 WIP show prompt for command parameters 2022-12-23 20:38:39 +00:00
Daniel Barlow 2610930690 mark command.reset-state as private (except for tests) 2022-12-23 19:52:40 +00:00
Daniel Barlow 8d871b20b8 define command parameters as array not kv table
a command should be able to say in which order it wants to ask for
unsupplied parameter values
2022-12-23 19:48:17 +00:00
Daniel Barlow bdd4507692 we are amused 2022-12-23 19:45:58 +00:00
Daniel Barlow e639e4c73d remove duplicate handler for entry activation 2022-12-23 19:45:37 +00:00
Daniel Barlow 40a598dca8 add indefinite article 2022-12-23 16:29:42 +00:00
Daniel Barlow e1988e6703 remove `inspect` package: we're not using it 2022-12-23 16:29:12 +00:00
Daniel Barlow 9a843e614d explain my conflicted attitude to code contributions 2022-12-23 16:19:42 +00:00
Daniel Barlow db02f34b3e whitespace and etc 2022-12-23 16:19:36 +00:00
Daniel Barlow d840eb8cb0 describe commands and bindings 2022-12-23 16:19:13 +00:00
Daniel Barlow cde0b8cd56 pass keymap into the frame 2022-12-23 15:21:06 +00:00
Daniel Barlow 0befc24bc0 update docs 2022-12-23 15:11:26 +00:00
Daniel Barlow 15c0ce3417 allow modifiers in keymaps 2022-12-23 14:43:29 +00:00
Daniel Barlow ddef8af528 restart tests when entr fails
entr doesn't cope well when emacs makes/removes symlinks that it's
looking at
2022-12-23 14:39:35 +00:00
Daniel Barlow d1e3b8c658 add license 2022-12-22 22:57:24 +00:00
Daniel Barlow c84cc6ef6d convert doc to markdown 2022-12-22 22:52:51 +00:00
Daniel Barlow 25d31e0262 use keymap to choose command to invoke 2022-12-22 22:42:45 +00:00
Daniel Barlow a489df34ab remove unneeded call to activate 2022-12-21 21:54:35 +00:00
Daniel Barlow 4cb82c8ca6 add socket repl 2022-12-21 21:51:06 +00:00
Daniel Barlow 512e8cad2f remove debug print 2022-12-21 21:12:21 +00:00
Daniel Barlow 3968d54b5c link to fennel 2022-12-21 21:09:51 +00:00
Daniel Barlow 1c1608fe1f add invoke-interactively, for use in keymaps
move commander widget to Command.widget
2022-12-21 18:04:20 +00:00
Daniel Barlow 491f3225b0 deactivate commander at startup
use M-x to activate it
2022-12-21 15:26:24 +00:00
Daniel Barlow ce009f2c7b improve test harness
use overmind and entr to run tests whenever files change
2022-12-21 15:26:24 +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 b534db7fd2 note origin of image 2022-12-21 15:26:20 +00:00
Daniel Barlow e2c6e2c5f6 use CamelCase for tables/modules that implement classes
Frame => bound to (require :frame)
frame => result of evaluating (Frame.new)
2022-12-20 12:28:32 +00:00
Daniel Barlow bd8a1a5c7d don't hardcode directory name 2022-12-20 12:26:28 +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
Daniel Barlow e638b2c330 placeholder doc page 2022-12-20 10:34:05 +00:00
Daniel Barlow 102afaa90e add command parameters (as long as there are none) 2022-12-19 21:01:10 +00:00
Daniel Barlow 38786d3790 add command line 2022-12-19 20:57:23 +00:00
Daniel Barlow aa26c2da3f derivations copied from Just Browsing 2022-12-19 18:49:10 +00:00
Daniel Barlow 5760268c0d rename pane to frame 2022-12-19 18:48:51 +00:00
Daniel Barlow 38c71c347e initial commit 2022-12-19 18:19:13 +00:00