History log of /haiku/src/apps/terminal/TitlePlaceholderMapper.cpp
Revision Date Author Comments
# 19bfeaa7 24-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

Support %e (cur.encoding) for Terminal titles

Optional parameter %e to indicate current tab view encoding in the
window title. It is not shown in case tab view encoding is default
UTF-8. Inspired by Sergei Reznikov. Thanks.


# 15e83c45 15-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

Omit Terminal Id title in case single app instance running

Hide the current index of Terminal window from it's title if only
ony instance of the Terminal application is running in the system.

Fixes #9530.


# a5b3caa2 12-Feb-2013 Siarzhuk Zharski <zharik@gmx.li>

%T placeholder (localized Terminal name) for title mask

* %T placeholder added into the set, available for customizing main
Terminal window title. It should be typically replaced by the
application name localized for the currect system locale.
* Use B_TRANSLATE instead of B_TRANSLATE_SYSTEM_NAME for the first
menu entry in the main TermWindow menu. The meaning of "Terminal"
term in this menu is the "Terminal session" but not the "Terminal
Application" so using separate catkeys entry for this menu item
avoids this inconsistency in Terminal UI localization;
* Fixes #7586


# 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


# 19bfeaa78642fedb092eeaea7bab826753f39bd5 24-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

Support %e (cur.encoding) for Terminal titles

Optional parameter %e to indicate current tab view encoding in the
window title. It is not shown in case tab view encoding is default
UTF-8. Inspired by Sergei Reznikov. Thanks.


# 15e83c4548b18194e1e707b31883e54d2fad1338 15-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

Omit Terminal Id title in case single app instance running

Hide the current index of Terminal window from it's title if only
ony instance of the Terminal application is running in the system.

Fixes #9530.


# a5b3caa295edb4064e3a560bced06ec27770c498 12-Feb-2013 Siarzhuk Zharski <zharik@gmx.li>

%T placeholder (localized Terminal name) for title mask

* %T placeholder added into the set, available for customizing main
Terminal window title. It should be typically replaced by the
application name localized for the currect system locale.
* Use B_TRANSLATE instead of B_TRANSLATE_SYSTEM_NAME for the first
menu entry in the main TermWindow menu. The meaning of "Terminal"
term in this menu is the "Terminal session" but not the "Terminal
Application" so using separate catkeys entry for this menu item
avoids this inconsistency in Terminal UI localization;
* Fixes #7586


# 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