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

MainWindow: Move Actions and Keyboard Handling Related to The View to TerminalWidget #749

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

Marukesu
Copy link
Contributor

As part of reducing the size of the MainWindow class, these was relying on the current_terminal property to work, however, both key handling and actions goes from the focused widget to the topmost parent. so we can move them to TerminalWidget class without problems.

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

I have left some inline comments. Everything else seems OK but I'll test a but more later.

src/Widgets/TerminalWidget.vala Outdated Show resolved Hide resolved
src/Widgets/TerminalWidget.vala Show resolved Hide resolved
src/Widgets/TerminalWidget.vala Show resolved Hide resolved
src/Widgets/TerminalWidget.vala Outdated Show resolved Hide resolved
@Marukesu Marukesu force-pushed the maru/terminal-actions branch from a297afa to 2d0f480 Compare November 26, 2023 18:27
@Marukesu Marukesu requested a review from jeremypw November 26, 2023 18:32
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

The "copy last output" and "scroll to last command" actions are not triggered by the keyboard (but the former is triggered by the context menu option). Something to do with the "key pressed" handler I think.

@Marukesu Marukesu force-pushed the maru/terminal-actions branch from 2d0f480 to 87878d2 Compare November 27, 2023 19:12
@Marukesu Marukesu requested a review from jeremypw November 27, 2023 19:13
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Its a pity this change turned out to be less straightforward than anticipated and a somewhat non-obvious workround is required to avoid breaking some actions. However this all seems to work now. So I guess it can be merged.

Maybe possible to refactor simplify later?

@jeremypw jeremypw merged commit beabb94 into master Nov 28, 2023
4 checks passed
@jeremypw jeremypw deleted the maru/terminal-actions branch November 28, 2023 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants