History log of /haiku-fatelf/src/apps/terminal/TitlePlaceholderMapper.cpp
Revision Date Author Comments
# ca598670 22-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Removed the shell process ID from ActiveProcessInfo and moved it to new class
ShellInfo, which also contains a flag whether the shell is the default shell.
* If the Terminal has been started with a custom shell, also replace "%p" in
the title by its name, when active.
* Also show the on-close alert for the custom shell.

Fixes #6844.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39573 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 441d3509 21-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed debug leftover.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39561 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e394a47 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

As suggested by Humdinger, replace "%p" by "--", if the shell is the active
process.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39528 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3c905542 18-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

TitlePlaceholderMapper::MapPlaceholder(): Don't cut of the root '/', if the
path had less components than requested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39483 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 02ee32bb 17-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented support for dynamic tab and window titles:
* Added settings for tab and window titles. Both are strings with optional
placeholders for tab/terminal index, currently active process name and
current directory.
* Added a generic utility class PatternEvaluator that allows to expand this
kind of pattern strings and callback classes
[Tab,Window]TitlePlaceholderMapper that provide the specific expansion for
the tab and window title placeholders.
* TermWindow:
- Separated the notions of session (== tab) and window titles. The tty
clients no longer set the window, but the session title.
- Use the patterns instead of the hard-coded window/tab titles.
- Recompute all titles once a second, so changes of running programs are
reflected.
* The default patterns for tab and window titles are "%1d: %p" (last CWD
component and name of the running process) and "Terminal %i: %t" (Terminal
ID and active tab title). Unfortunately the space on the tabs is seriously
limited, so that the tab title is virtually always truncated. Ideas welcome.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39473 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ca598670fb927e196eb2a5ab90fa03bfb5dac0a2 22-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

* Removed the shell process ID from ActiveProcessInfo and moved it to new class
ShellInfo, which also contains a flag whether the shell is the default shell.
* If the Terminal has been started with a custom shell, also replace "%p" in
the title by its name, when active.
* Also show the on-close alert for the custom shell.

Fixes #6844.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39573 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 441d3509c9eae15307add728f9ab2bbf822064e9 21-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed debug leftover.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39561 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e394a47649c5d4549d4f79b44a3c86e77272f64 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

As suggested by Humdinger, replace "%p" by "--", if the shell is the active
process.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39528 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3c90554279cf69e666bda1dccc40007e0c8478cb 18-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

TitlePlaceholderMapper::MapPlaceholder(): Don't cut of the root '/', if the
path had less components than requested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39483 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 02ee32bb0d3cc6680c421177bb490dba84230081 17-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented support for dynamic tab and window titles:
* Added settings for tab and window titles. Both are strings with optional
placeholders for tab/terminal index, currently active process name and
current directory.
* Added a generic utility class PatternEvaluator that allows to expand this
kind of pattern strings and callback classes
[Tab,Window]TitlePlaceholderMapper that provide the specific expansion for
the tab and window title placeholders.
* TermWindow:
- Separated the notions of session (== tab) and window titles. The tty
clients no longer set the window, but the session title.
- Use the patterns instead of the hard-coded window/tab titles.
- Recompute all titles once a second, so changes of running programs are
reflected.
* The default patterns for tab and window titles are "%1d: %p" (last CWD
component and name of the running process) and "Terminal %i: %t" (Terminal
ID and active tab title). Unfortunately the space on the tabs is seriously
limited, so that the tab title is virtually always truncated. Ideas welcome.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39473 a95241bf-73f2-0310-859d-f6bbb57e9c96