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

Configurable terminal program #58

Merged
merged 7 commits into from
Oct 16, 2024
Merged

Configurable terminal program #58

merged 7 commits into from
Oct 16, 2024

Conversation

rgolangh
Copy link
Owner

@rgolangh rgolangh commented Oct 12, 2024

Support configuring the terminal program

The extension preferences has a new entry for the terminal program to
use for running the commands in a terminal.

The default value is "gnome-terminal --" which is the current behaviour.

Here are terminal values that were tested and worked:
"gnome-terminal --"
"ptyxis --"
"kitty"
"flatpak run com.gexperts.Tilix -e"
"flatpak run app.studiodev.Ptyxis --"

Fixes: #57

@rgolangh rgolangh force-pushed the configure-terminal-program branch 13 times, most recently from 3ca358f to 1f34853 Compare October 12, 2024 12:52
show_apply_button: true, // Allows user to apply the input
});
behaviourGroup.add(terminalRow);
window._settings.bind("terminal", terminalRow, "text", Gio.SettingsBindFlags.DEFAULT);

Choose a reason for hiding this comment

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

Just a silly question

Does gnome extension use mvvm to set the config, and we only need to set a new schema of the config then it just automatically has storage for saving it?

I seen on https://gjs.guide/extensions/development/preferences.html#gsettings

But well I never code it, just making sure.

Thank you

Copy link
Owner Author

Choose a reason for hiding this comment

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

I don't how the internal backend system for gsettengs works, I just use the API. It is used for a lot other gnome related configurations, not only for extensions though.

@rgolangh rgolangh force-pushed the configure-terminal-program branch 2 times, most recently from 038aa01 to ae0bb1a Compare October 16, 2024 06:51
The extension preferences has a new entry for the terminal program to
use for running the commands in a terminal.

The default value is "gnome-terminal --" which is the current behaviour.

Here are terminal values that were tested and worked:
"gnome-terminal --"
"ptyxis --"
"kitty"
"flatpak run com.gexperts.Tilix -e"
"flatpak run app.studiodev.Ptyxis --"

Signed-off-by: Roy Golan <[email protected]>
- migrate to eslint 9
- migrate .eslint.yaml to eslint.config.mjs

Signed-off-by: Roy Golan <[email protected]>
@rgolangh rgolangh force-pushed the configure-terminal-program branch from ae0bb1a to 97226e7 Compare October 16, 2024 07:04
Signed-off-by: Roy Golan <[email protected]>
Signed-off-by: Roy Golan <[email protected]>
@rgolangh rgolangh merged commit 4acc02c into main Oct 16, 2024
1 check passed
@rgolangh rgolangh mentioned this pull request Oct 16, 2024
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.

[Feature Request] There are options for Change targeted terminal
2 participants