Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have node selection reflect in body with arrow keys alone, instead of having to use the enter key #43

Closed
boltex opened this issue May 31, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@boltex
Copy link
Owner

boltex commented May 31, 2020

Suggested by @ar-jan as an unrelated idea to an other issue #32 : #32 (comment)

Could this be mimicked? ...In Leo, if arrow keys are used in the outline, the node selection is reflected instantly in the body pane. In vscode, an outline has a cursor

Q&A below:

Q: It's already the case when using the keyboard to expand/contract nodes so why not making it so too when moving the outline "cursor" ?
A: expanding and collapsing nodes have an associated event, although moving the cursor in the tree is detectable, the selection cursor is unkown as far as I know as opposed to a collapse/expand event.

@boltex boltex self-assigned this May 31, 2020
@boltex boltex added the enhancement New feature or request label May 31, 2020
@boltex
Copy link
Owner Author

boltex commented Jul 4, 2020

MIGHT BE POSSIBLE : Just hook on "up down left right" key presses with 'when' condition of having focus on the outline exclusively. -> On leo's side, mae available commands for select up down left and right of current selection.

In theory.... vs in practice ... 'know what i mean? 😄

@boltex
Copy link
Owner Author

boltex commented Aug 12, 2020

This Feature has been greatly improved in branch "boltex/issue74"

boltex added a commit that referenced this issue Aug 12, 2020
Added throttle to the 'switch-body' and 'show-body' cycle
Improves #43
@edreamleo
Copy link
Collaborator

Perhaps @bool stayInTreeAfterSelect (in leoSettings.leo) is relevant to this issue. Here are the comments:

True: (Recommended) Selecting an outline node leaves the focus in the outline pane.

If this is False it will be harder to use the arrow keys in the headline.

False: (Legacy) Selecting an outline node transfers focus to the body pane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants