On Sun, Jul 9, 2017 at 7:09 AM, vitalije <[email protected]> wrote:
In new version > [show-fonts]...assumes that currently selected node is in fact `@font` > setting node. If it is, font dialog will show initially font defined by > values in the body of currently selected node. After confirmation, Leo > would adjust body values to reflect font that user has chosen. > Excellent idea. Now I am not sure what users expect to happen if show-fonts command is > invoked not in `@font` node? What this command should do? > > - give user a warning in Log pane that this command is intended to be > executed only when inside `@font` nodes? > > Do this if there is no font def in the clipboard. > > - put chosen font definition in clipboard so that it can be pasted > later > > Yes, if c.p is an `@font node`, the pasting to the clipboard makes sense. > > - search outline for the first `@font` node after currently selected > node and then operate on that node > > Definitely do *not *do this. > A similar situation is with new command `edit-shortcut`. It is supposed to > be used when editing `@shortcuts` node with shortcuts one per body line, or > with `@command` node with possible shortcut in headline. What this command > should do when not in such node? > Just issue a warning. Don't try to guess what the user "really" meant. I plan to tackle also `show-color-wheel` command and make it work with > currently selected `@color` node. I believe it would be best if all those > commands are made to give same response in case when currently selected > node is not of the expected kind. But what that response should be? > A warning will be simple and good, unless the clipboard contains font/color info. But even in that case, the command should advise the user what the more natural usage of the command is. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
