Feature request: default working directory of new tab

Bug #1027926 reported by Ozzin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Guake
Confirmed
Unknown
guake (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

With Gnome Terminal, when I press Ctrl-Shift-N in an existing terminal to open a new one, it sets its default working directory to the match the one from the previous terminal. I find this to be very useful behaviour. If I want to get back to the home directory I can just "cd", but if it were to start in the home directory then I'll have to type quite a lot to get to the directory in which I was working.

Could this be implemented in Guake as well, when opening new tabs? Perhaps it could be a setting in the preferences, if not everyone would like it.

Great work on this project!

Revision history for this message
Thomas Ward (teward) wrote :

I have sent this feature request upstream, and have marked the bug in Ubuntu as "Triaged" with the importance of "Wishlist" in accordance with how we triage feature requests.

------
Thomas Ward
LPID: trekcaptainusa-tw
Ubuntu BugSquad Member
Ubuntu BugControl Member

Changed in guake (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Changed in guake:
status: Unknown → New
Revision history for this message
Ozzin (ozzin) wrote :

A somewhat hacky way to implement this is to change the line

self.add_tab()

to

self.add_tab(self.get_current_dir())

in the function accel_add() in guake.py. (It is on line 895 on my machine running guake 0.4.2, and the file is in /usr/lib/guake/)

This only causes the working directory to be used when a shortcut key is used to open the new tab -- not when the button is pressed. I tried modifying the add_tab() procedure to make it always do it, by checking if the 'directory' parameter was set, but couldn't get it to work. (I'm afraid I have very little python experience.)

Revision history for this message
Tobiasz Jarczyk (dotnokato-q) wrote :

Hi, what version of guake are you using?
This feature is already present in 0.4.3.

Changed in guake:
status: New → Confirmed
Revision history for this message
Robert Matusewicz (matekm) wrote :

Implemented in guake since guake 8.2.0

Changed in guake (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.