-
Notifications
You must be signed in to change notification settings - Fork 259
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
working directory feature is broken #760
Comments
Hi @tomatac This issue is on terminator 2.1.3 ? You mention that it used to work on earlier versions ? Can you please let me know what was the flow like and on which version of terminator ? So there is a plugin SaveLastSessionLayout, if enabled it will save your session as per the last window closed. On launch, you can Right Click->Layouts->SaveSessionLayout and restore that one. I have commented out the provision for auto loading as it wasn't sure how users would like to use it and if it was ok to override "default" so "SaveSessionLayout" was used. May be auto-restore should be a selectable option. |
Thanks for a detailed reply, Ok I think I get it, for 2.1.3, for "default" session
For SaveLastSession. It works for me. One has to ensure that the window with tabs and working dir be closed last. Then on next launch right click->layout->SaveLastSession would open. May be it should be more intutive and by default should open last session when enabled. |
@tomatac I have made a patch with does fix it and have shared it for more testing and observations with regard to "command" setting and behavior, meanwhile pls test it out and see if it works. Ref: https://github.com/vssdeo/terminator/tree/760-working-directory-feature-is-broken |
@vssdeo, How can we test this patch? |
git clone https://github.com/vssdeo/terminator.git for running of command, the terminator exits, since I am not sure of this behavior I am checking with others. |
@vssdeo, I tested the patch but it only works partially for me. |
@tomatac thanks for the feedback, even I am trying to wrap my head around why its not working for you ?
|
@vssdeo, I believe that the issue is related to ability of program to run a command at startup because the custom command feature for each window does not work either. |
Thanks for your reply @tomatac for config and code sharing and patience. It could be error on my part in understanding your usage so pls hold on a bit more.
Are you using multiple windows ? because in his case I used your config with diff as below (screenshot) attached.
|
Thanks @vssdeo!
quite misleading, but at least we are getting somewhere! |
Bingo ! We have hit a jackpot my dear friend @tomatac ! So now we are sure that out of 3 issues. The number 3) is fixed in my pull request. Now regarding 1) the expansion of home dir let me look into it. for point 2 where the terminal tab/window gets killed after running the command I have notified @mattrose also since I had the same issue in my bookmark plugin https://github.com/vssdeo/terminator/tree/706-Favorites-Bookmarks-Plugin where the window would die after running a non loop command. I took a diff approach there and changed my bookmark plugin but now I see the same devil popping up. Actually in terminator the window gets killed after running command unlike terminal in osx where the window dies with a message and then user can close the window/tab. I personally prefer in plugin the window to be there after running command like in bookmarks plugin but in terminal I am not sure, so will check with others. Now we have all the issues known let me see if we can do this point 2 better. |
- directory was not getting expanded for ~ to user dir while changing path
-added home dir ~ expansion to UI in prefs also
@tomatac have fixed the (1) dir issue and point (3) works as expected I guess. Let me check the window closing after command for non bookmark cases how the team suggests. |
The behaviour of number 2 can be specified in the Preferences window, under the custom command dialog. That way the user can specify the behaviour and we don't have to guess. |
Directory feature per terminal is ignored loading the config file and cannot be set using the UI.
Tested on Ubuntu 22.04.
This used to work in older versions.
The only reasonable workaround, until this gets fixed, is to use the custom commands plugin and setup there cd custom commands.
config.txt
The text was updated successfully, but these errors were encountered: