Jonathan Daugherty
eb54e536a1
KeyConfig.hs: improve documentation
2022-08-01 13:32:34 -07:00
Jonathan Daugherty
e91462e1c1
KeyConfig.hs: improve documentation
2022-08-01 13:30:32 -07:00
Jonathan Daugherty
bb0ccad5b5
handleKeyboardEvent -> handleKey, take key/modifiers rather than Vty Event
2022-08-01 13:17:43 -07:00
Jonathan Daugherty
048aaa6643
Keybindings: documentation
2022-08-01 13:08:10 -07:00
Jonathan Daugherty
8267089711
mkKeybindings -> keyDispatcher
2022-08-01 13:06:20 -07:00
Jonathan Daugherty
a50da870de
mkKeybindings: use a more natural argument order
2022-08-01 13:03:12 -07:00
Jonathan Daugherty
9451379890
KeyDispatcher: add module haddock
2022-08-01 13:01:50 -07:00
Jonathan Daugherty
02cb6f9a90
KeyDispatcher: section reordering
2022-08-01 12:53:25 -07:00
Jonathan Daugherty
8249d1ea77
KeyHandlerMap -> KeyDispatcher
2022-08-01 12:52:13 -07:00
Jonathan Daugherty
2d5f1c4daa
KeyHandlerMap: add more documentation
2022-08-01 12:48:10 -07:00
Jonathan Daugherty
eebf028734
KeyHandlerMap: improve the names of some fields and constructors
2022-08-01 12:38:46 -07:00
Jonathan Daugherty
b97f6e19dc
Keybindings.Pretty: add documentation
2022-08-01 12:32:22 -07:00
Jonathan Daugherty
e8557117e7
parseBinding: do not ignore case on parsed base key character
2022-08-01 11:56:25 -07:00
Jonathan Daugherty
276cf22331
Keybindings.Parse: documentation
2022-08-01 11:56:12 -07:00
Jonathan Daugherty
2e30bbe33e
Haddock nit
2022-08-01 11:36:00 -07:00
Jonathan Daugherty
b7be977d33
KeyEvents: add documentation
2022-08-01 11:35:16 -07:00
Jonathan Daugherty
57679a8f71
newKeyConfig: use a more natural argument ordering
2022-08-01 11:34:59 -07:00
Jonathan Daugherty
5f35cd0e3e
KeyConfig: more documentation improvements
2022-08-01 11:29:18 -07:00
Jonathan Daugherty
d83b5eae94
ToBinding: improve description
2022-08-01 11:25:55 -07:00
Jonathan Daugherty
8a3ea98284
KeyConfig: remove redundant key and char functions, improve modifier internals
2022-08-01 11:25:08 -07:00
Jonathan Daugherty
7651cdd546
KeyConfig: add more documentation
2022-08-01 11:22:05 -07:00
Jonathan Daugherty
d81ce60ffb
allActiveBindings: only return default bindings when an event has no configured bindings and has not been set to Unbound
2022-08-01 11:06:05 -07:00
Jonathan Daugherty
eedd503cf2
KeyConfig: make active/default binding query functions symmetric
2022-07-28 19:03:55 -07:00
Jonathan Daugherty
63a4083391
EventTrigger: Static -> ByKey
2022-07-10 13:59:27 -07:00
Jonathan Daugherty
456da00fa9
keyHandlersFromConfig: nit
2022-07-10 13:57:58 -07:00
Jonathan Daugherty
6466c4e99d
keyHandlersFromConfig: cleanup
2022-07-10 13:56:41 -07:00
Jonathan Daugherty
6c1f357318
Whitespace
2022-07-10 13:56:29 -07:00
Jonathan Daugherty
3014e79304
Remove stale imports
2022-07-10 13:56:26 -07:00
Jonathan Daugherty
232fcc81b4
Keybindings: re-export Pretty module
2022-07-10 09:50:09 -07:00
Jonathan Daugherty
52a370fad8
Parse: move pretty-printing functions to Pretty
2022-07-10 09:50:02 -07:00
Jonathan Daugherty
04676115e6
Incorporate keybinding machinery from Matterhorn
2022-07-10 09:37:16 -07:00
Jonathan Daugherty
b23c40d82a
Editor: mention mouse events in docs
2022-07-09 12:20:44 -07:00
Jonathan Daugherty
1c044013b2
Comment edit
2022-07-09 09:23:36 -07:00
Jonathan Daugherty
034ce2dfbf
Bump version, update changelog
2022-07-09 09:23:10 -07:00
Jonathan Daugherty
beebfc7ba4
Changelog: remove merged entry
2022-07-09 09:22:34 -07:00
Jonathan Daugherty
40a39b92d1
Merge pull request #376 from TristanCacqueray/edit-cursor-pos
...
Add Brick.Widgets.Edit.getCursorPosition
2022-07-09 09:22:13 -07:00
Jonathan Daugherty
4749694d5a
Bump version, update changelog
2022-07-09 08:44:05 -07:00
Jonathan Daugherty
c832aef14a
Improve editor cursor placement with moveCursorClosest from text-zipper 0.12
2022-07-09 08:40:04 -07:00
Jonathan Daugherty
8eb41ca8c3
handleEditorEvent: handle mouse click events to place the cursor (adds Eq constraint to handleEditorEvent)
2022-07-09 08:30:42 -07:00
Jonathan Daugherty
65645be3d2
Edit: handle BrickEvents, not Events
...
This is a breaking API change that changes handleEditorEvent to take
BrickEvents instead of Events. This paves the way for handling Brick's
mouse events in the editor.
2022-07-09 08:23:32 -07:00
Jonathan Daugherty
d2b884586e
Edit: let/where refactor
2022-07-09 08:07:28 -07:00
Jonathan Daugherty
2a99ee3fa0
Whitespace
2022-07-09 08:06:49 -07:00
Tristan Cacqueray
767438cd1d
Add Brick.Widgets.Edit.getCursorPosition
2022-07-09 11:59:33 +00:00
Jonathan Daugherty
41387854ae
Bump version, update changelog
2022-07-05 08:17:25 -07:00
Jonathan Daugherty
4c955ad907
Render.hs: catch all exceptions, not just VtyConfigurationError
2022-07-05 08:15:18 -07:00
Jonathan Daugherty
1bed2c8268
Implement a few linter suggestions
2022-07-04 21:11:12 -07:00
Jonathan Daugherty
ac7a8aeb71
Bump version, update changelog
2022-07-04 09:27:25 -07:00
Jonathan Daugherty
583ce85953
Add missing pragma
2022-07-04 09:21:55 -07:00
Jonathan Daugherty
e23c1ab285
Render.hs: add conditional import
2022-07-04 09:20:31 -07:00
Jonathan Daugherty
0a3a8f8012
Upgrade Vty and expected Show formatting of Picture in Render.hs
2022-07-04 09:14:23 -07:00