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

ENH: add command and history properties to ctkConsole #945

Merged
merged 1 commit into from
Dec 31, 2020

Conversation

pieper
Copy link
Member

@pieper pieper commented Dec 30, 2020

Previously, the API allowed execution of commands but not
setting the state of the command buffer to be executed when the
user hit enter.

Also the command history always started empty.

This change adds read/write properties to fix this.

Now the command buffer can be set, e.g. by a hot key or other
custom code and it will be editable and the user can add more text,
user the completer, etc.

Also the command history can be controlled by the appication so
that it can save and restore previous sessions as a convenience
to the user.

Previously, the API allowed execution of commands but not
setting the state of the command buffer to be executed when the
user hit enter.

Also the command history always started empty.

This change adds read/write properties to fix this.

Now the command buffer can be set, e.g. by a hot key or other
custom code and it will be editable and the user can add more text,
user the completer, etc.

Also the command history can be controlled by the appication so
that it can save and restore previous sessions as a convenience
to the user.
@pieper pieper requested review from jcfr and lassoan December 30, 2020 23:28
Copy link
Member

@lassoan lassoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me (but I don't understand that empty history item - see comment)

Libs/Widgets/ctkConsole.cpp Show resolved Hide resolved
@pieper pieper merged commit 1f577aa into commontk:master Dec 31, 2020
@pieper pieper deleted the console-enh branch December 31, 2020 18:21
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.

2 participants