Skip to content
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

Add option to show full path in titlebar #429

Merged
merged 4 commits into from
Jan 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ReText/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def getBundledIcon(iconName):
'useWebEngine': False,
'useWebKit': False,
'windowGeometry': QByteArray(),
'windowTitleFullPath': False,
'paperSize': '',
}

Expand Down
1 change: 1 addition & 0 deletions ReText/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def initConfigOptions(self):
(self.tr('Icon theme name'), 'iconTheme'),
(self.tr('Stylesheet file'), 'styleSheet', True),
(self.tr('Hide tabs bar when there is only one tab'), 'tabBarAutoHide'),
(self.tr('Show full path in window title'), 'windowTitleFullPath'),
))
)

Expand Down
2 changes: 2 additions & 0 deletions ReText/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,8 @@ def tabFileNameChanged(self, tab):
if tab == self.currentTab:
if tab.fileName:
self.setWindowTitle("")
if globalSettings.windowTitleFullPath:
self.setWindowTitle(tab.fileName + '[*]')
self.setWindowFilePath(tab.fileName)
self.tabWidget.setTabText(self.ind, tab.getBaseName())
self.tabWidget.setTabToolTip(self.ind, tab.fileName)
Expand Down
1 change: 1 addition & 0 deletions configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ option name | type | description
`useFakeVim` | boolean | whether to use the FakeVim editor, if available (default: false)
`useWebEngine` | boolean | whether to use the WebEngine (Chromium) as HTML previewer (default: false)
`useWebKit` | boolean | whether to use the WebKit instead of QTextEdit as HTML previewer (default: false)
`windowTitleFullPath` | boolean | whether the window title should show the full path of file (default: false)

If the type is 'file path', then the value should be an absolute path
to a file.
Expand Down