"Focus after command completion" Question

29 views
Skip to first unread message

Félix

unread,
Jul 4, 2020, 8:30:39 PM7/4/20
to leo-editor
I'm currently trying to recreate the "introduction to Leo" video. 

at 48 seconds in the video, https://www.youtube.com/watch?v=tuM8MvI9g6k&t=47 an outline operation (CTRL+R) move right is performed, and the focus is switched to the outline pane (instantly) along with the node's movement to the right.

 No CTRL+T (switch focus) seems to be issued.

When i try it on my machine (both on linux and windows) focus from the body pane stays on the body pane after keyboard shortcuts are used to modify the outline. 

So the question id: Is it default behavior? - or is it something that is changed by options/settings?... or was it like that in older versions of Leo, and it was changed to some other behavior at some point in the past?

I also am fixing keyboard navigation and edition of the outline with regards to focussing at the right place after command execution and allowing selection of node with arrow keys instead of cursor movement only, to keep total familiarity when using LeoInteg,( even for first timers coming from Leo to have seamless transition from Leo to LeoInteg...if possible).

Remaking this video is kind of a 'stress and feature test' of the keyboard-only operation of leoInteg.

--
Félix

Edward K. Ream

unread,
Jul 5, 2020, 5:43:49 AM7/5/20
to leo-editor
On Sat, Jul 4, 2020 at 7:30 PM Félix <felix...@gmail.com> wrote:
I'm currently trying to recreate the "introduction to Leo" video. 

at 48 seconds in the video, https://www.youtube.com/watch?v=tuM8MvI9g6k&t=47 an outline operation (CTRL+R) move right is performed, and the focus is switched to the outline pane (instantly) along with the node's movement to the right.

I see the behavior you describe. After typing in a node, Ctrl-R leaves focus in the body pane. I suspect what you see in the video is an artifact of editing.

I've just checked my myLeoSettings.leo file. I see no non-standard settings relating to focus. It's possible that either settings or Leo itself has changed since the video was made. I have no way of knowing now. The only setting that I see relating to this question is:

@bool stayInTreeAfterSelect = True

This is the default (and recommended) value.

In short, I think you should believe what you actually see in Leo, not what appears in the video.

Edward
Reply all
Reply to author
Forward
0 new messages