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

Implement gnome-terminal style -x (--) flag. #397

Merged
merged 12 commits into from
Dec 16, 2019
Merged

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Aug 23, 2019

Fixes #395 (hopefully)

Implements a flag (-x or --) that causes the remainder of the line to be treated as a command in its own right, to be passed to a new terminal, without requiring quotes. This is intended to match the behaviour of gnome-terminal. It allows more complex commands to be executed (including their own flags). The existing -e flag only allows a single argument per command so complex commands need quoting.

It may be advisable to define strings that cause the command building to end - advice required.

Jeremy Wootten added 2 commits August 23, 2019 18:45
Copy link

@devprabal devprabal left a comment

Choose a reason for hiding this comment

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

works on my system!

@jeremypw jeremypw requested a review from a team August 24, 2019 12:36
src/Application.vala Outdated Show resolved Hide resolved
src/Application.vala Outdated Show resolved Hide resolved
Philip-Scott
Philip-Scott previously approved these changes Aug 28, 2019
Copy link
Member

@Philip-Scott Philip-Scott left a comment

Choose a reason for hiding this comment

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

Code wise it looks good to me, but I haven't had a chance to compile and test it (and won't be able to this week) If you can get someone else to test it as well that would be great :) but I'm removing my "needs changes" to not be a blocker.

If no one else checks it by next week, I'll give it a look once I'm back home :)

@jeremypw
Copy link
Collaborator Author

@Philip-Scott OK, thanks for the review - I'll not merge for now.

# Conflicts fixed in:
#	src/Application.vala
@jeremypw
Copy link
Collaborator Author

@Philip-Scott Any chance of a re-review? :-)

Copy link
Member

@tintou tintou left a comment

Choose a reason for hiding this comment

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

A few bits to change

src/Application.vala Outdated Show resolved Hide resolved
src/Application.vala Outdated Show resolved Hide resolved
src/Application.vala Outdated Show resolved Hide resolved
@jeremypw jeremypw requested a review from tintou December 16, 2019 16:47
@jeremypw jeremypw mentioned this pull request Dec 16, 2019
@tintou tintou merged commit cd09a89 into master Dec 16, 2019
@tintou tintou deleted the implement-x-flag branch December 16, 2019 18:15
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.

Can't use options with io.elementary.terminal
5 participants