Opened 14 years ago

Closed 13 years ago

#6712 closed enhancement (fixed)

Make new windows/tabs open at the path of the active tab

Reported by: andreasf Owned by: jackburton
Priority: normal Milestone: R1
Component: Applications/Terminal Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by andreasf)

It would be nice if Terminal would spawn new shells in such a way that they do not open with the default home folder ~> but with the current directory of the active shell.

That would match GNOME behavior.

Currently:

Shell 1:

Welcome to the Haiku shell.

~> cd /Source/haiku
/Source/haiku> 

Alt+t

Shell 2:

Welcome to the Haiku shell.

~> cd /Source/haiku/generated-gcc4
/Source/haiku/generated-gcc4> 

Requested:

Shell 1:

Welcome to the Haiku shell.

~> cd /Source/haiku
/Source/haiku> 

Alt+t

Shell 2:

Welcome to the Haiku shell.

/Source/haiku> cd generated-gcc4
/Source/haiku/generated-gcc4> 

Change History (4)

comment:1 by andreasf, 14 years ago

Description: modified (diff)

comment:2 by andreasf, 14 years ago

Corrected myself: Mac OS X v10.5 behavior matches that of Haiku currently.

comment:3 by bonefish, 14 years ago

Would be nice indeed. Konsole has that feature, too and I find that it is mostly what one wants when opening a new tab. The Terminal side should be easy enough to implement. The only problem is that we don't have a way to get the current working directory of another team yet. Adding a respective syscall wouldn't be hard either, but before we start adding individual syscalls for stuff like this, we should consider a more generic API for getting information about a team. A procfs would be an option, but that comes with the overhead of a file system and also requires parsing the information read. Maybe something like:

status_t get_extended_team_info(team_id teamID, uint32 flags, BMessage& info)

comment:4 by bonefish, 13 years ago

Resolution: fixed
Status: newclosed

Implemented in hrev39457 and hrev39458.

Note: See TracTickets for help on using tickets.