Skip to content

[bug 760] working directory feature is broken#882

Merged
mattrose merged 1 commit intognome-terminator:masterfrom
vssdeo:760-working-directory-feature-is-broken
Feb 15, 2024
Merged

[bug 760] working directory feature is broken#882
mattrose merged 1 commit intognome-terminator:masterfrom
vssdeo:760-working-directory-feature-is-broken

Conversation

@vssdeo
Copy link
Copy Markdown
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
Copy Markdown
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
@vssdeo
Copy link
Copy Markdown
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