-
Notifications
You must be signed in to change notification settings - Fork 6
/
set_window_title.sublime-settings
37 lines (32 loc) · 1.31 KB
/
set_window_title.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
// Are you using an unregistered version of Sublime ?
"unregistered": false,
// Template for the window title.
// The template accept the following parameters:
// - {path}: the path of the current file
// - {file}: the filename of the current file (without the path)
// - {project}: the project name, or the name of the top folder
// - {has_project}: will be replaced by the content of "has_project_true" or
// "has_project_false" settings, depending if a "project" has been found.
// - {is_dirty}: will be replaced by the content of "is_dirty_true" or
// "is_dirty_false" settings, depending if the current view is being
// modified.
//
// Note that the replacement happens before the formatting.
// So "has_project_true", "has_project_false", ... strings may contains other
// parameters like {project}.
"template": "{has_project}{path} {is_dirty} ST",
"has_project_true": "({project}) ",
"has_project_false": "",
"is_dirty_true": "~",
"is_dirty_false": "-",
// Way to display the path. Accepts:
// - "full": full-path,
// - "relative": path relative to the top folder,
// - "shortest": shortest of above paths
"path_display": "shortest",
// The value of {path} for untitled files.
"untitled": "<untitled>",
// Output some debug info in the console.
"debug": false,
}