Generalized editor #5

Closed
sgrove opened this Issue Mar 8, 2014 · 3 comments

Projects

None yet

2 participants

@sgrove
sgrove commented Mar 8, 2014

Just a thought, but I think it's doable.

  1. Instantiate Ankha with a go channel to listen on.
  2. Double-click to edit a field. Cancel on esc, save on enter.
  3. On save, send a message on the channel with the path in the tree that's compatible with assoc-in, the old value and the new value (ideally coerced into the right type based on the old value type).

Then I can listen on the channel and edit different pieces of the app-state (especially with my draggable window and jump-to-tree-path keybindings) instantly.

@sgrove
sgrove commented Mar 8, 2014

It'd also work to have a callback-based interface if you didn't want to bring core.async into the mix.

@noprompt
Owner
noprompt commented Mar 9, 2014

I like it! @swannodette had suggested it would be cool to make it editable. My hands are tied at the moment but would definitely receive any patches/improvements with an open mind.

@noprompt
Owner

Closing this thanks to #8. We'll continue to work on it though. You've made some great suggestions!

@noprompt noprompt closed this Jun 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment