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

Enable terminix to execute commands from the terminal #40

Closed
gnunn1 opened this issue Jan 20, 2016 · 0 comments
Closed

Enable terminix to execute commands from the terminal #40

gnunn1 opened this issue Jan 20, 2016 · 0 comments

Comments

@gnunn1
Copy link
Owner

gnunn1 commented Jan 20, 2016

When using terminix, sometimes you want to perform an action in terminix and it would be faster just to be able to bang it out from the keyboard. This feature will enable users to execute any parameterless GAction from the terminix prompt.

From a design perspective, the following changes will be made:

a. Add an environment variable called TERMINIX_ID with the UUID of the terminal
b. When user executes second copy of terminix (called the remote instance in GTK Application parlance), check for a new command parameter. If found, invoke a method to execute a new Command action with the name of the command and the terminal UUID as parameters
c. Command will use same action name format string as keyboard shortcuts in GSettings, i.e. "prefix-actionname"
d. This method gets executed in the remote Application however GTK Application automatically sends the invocation of the command GAction to the primary instance
e. Remote instance terminates
f. Primary instance executes command action, find the terminal with the matching UUID and then walk up the widget chain until we find an ActionGroup that matches the prefix of the command.
f. Execute the action

In a nutshell, users can issue command as follows:

terminix -c terminal-split-horizontal
terminix -c terminal-split-vertical
terminix -c app-new-window

etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant