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

[bug 760] working directory feature is broken #882

Conversation

vssdeo
Copy link
Contributor

@vssdeo vssdeo commented Feb 5, 2024

  • as per the bug the layout does not get updated when "Save" button in layout is pressed
  • it does get updated if the window is closed by pressing top x close icon.
  • on pressing Save, it seems that the prefseditor takes this from current_layout = terminator.describe_layout() and saves it in config
  • whereas the current changes are done per key stroke and config is updated
  • this patch copies the parameters like directory and command when Save is press and on_layoutrefreshbutton_clicked() is called
  • Hence working dir and command are copied when Save is pressed using uuid to match terminals.
  • If there is a command registered then the terminal runs the command and exits. so one is not able to see the results.

- as per the bug the layout does not get updated when "Save" button in layout is pressed
- it does get updated if the window is closed by pressing top x close icon.
- on pressing Save, it seems that the prefseditor takes this from current_layout = terminator.describe_layout() and saves it in config
- whereas the current changes are done per key stroke and config is updated
- this patch copies the parameters like directory and command when Save is press and on_layoutrefreshbutton_clicked() is called
- Hence working dir and command are copied when Save is pressed using uuid to match terminals.
- If there is a command registered then the terminal runs the command and exits. so one is not able to see the results.
@mattrose
Copy link
Member

You did it you mad genius! :)

This has been a problem for so long it's in the docs that were written before I took over. I'll take another look at it before merging it, but all I have to say is: Wow, good job!

@mattrose mattrose merged commit 750a9be into gnome-terminator:master Feb 15, 2024
2 checks passed
@vssdeo
Copy link
Contributor Author

vssdeo commented Feb 16, 2024

You did it you mad genius! :)

This has been a problem for so long it's in the docs that were written before I took over. I'll take another look at it before merging it, but all I have to say is: Wow, good job!

I shall print and frame this :) @mattrose

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