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

Console improvements #1045

Merged
merged 2 commits into from
Oct 21, 2022
Merged

Console improvements #1045

merged 2 commits into from
Oct 21, 2022

Conversation

lassoan
Copy link
Member

@lassoan lassoan commented Oct 21, 2022

These two commits address several small limitations of the Python console.

Escape button does one of the followings:
- if there is a selection: clears the selection
- if the cursor is outside the input line: move the cursor to the input line
- clear the current command and rewind the command history
- Text cursor position jumped to the end of the input line after paste, now it remains at the end of the selection.
- Fixed position of input text: typed text appeared above the input prompt when using the `input()` Python command, now the text is typed after the input prompt
- If command was executed right after cut or copy, then the result of the last cut or copy operation was not included in the command.
- If SplitCopiedTextByLine was disabled then text after the current paste position was discarded.
@lassoan lassoan requested a review from pieper October 21, 2022 11:58
@lassoan lassoan self-assigned this Oct 21, 2022
@lassoan
Copy link
Member Author

lassoan commented Oct 21, 2022

Fixes this isssue with the input command: https://discourse.slicer.org/t/input-function-writing-on-wrong-line/25651

@lassoan lassoan merged commit 8487ec9 into commontk:master Oct 21, 2022
@lassoan lassoan deleted the console-improvements branch October 21, 2022 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant