File tree Expand file tree Collapse file tree 8 files changed +25
-25
lines changed
Settings/Pages/GeneralSettings
Documentation.docc/App Window Expand file tree Collapse file tree 8 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 11//
22// EditorJumpBar.swift
3- // CodeEditModules/PathBar
3+ // CodeEdit
44//
55// Created by Lukas Pistrol on 18.03.22.
66//
Original file line number Diff line number Diff line change 11//
22// EditorJumpBarMenu.swift
3- // CodeEditModules/PathBar
3+ // CodeEdit
44//
55// Created by Ziyuan Zhao on 2022/3/29.
66//
Original file line number Diff line number Diff line change 11//
22// EditorJumpBarView.swift
3- // CodeEditModules/PathBar
3+ // CodeEdit
44//
55// Created by Lukas Pistrol on 17.03.22.
66//
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ import SwiftUI
99import CodeEditTextView
1010
1111struct EditorAreaView : View {
12- @AppSettings ( \. general. showEditorPathBar )
13- var showEditorPathBar
12+ @AppSettings ( \. general. showEditorJumpBar )
13+ var showEditorJumpBar
1414
1515 @AppSettings ( \. navigation. navigationStyle)
1616 var navigationStyle
@@ -43,8 +43,8 @@ struct EditorAreaView: View {
4343
4444 var editorInsetAmount : Double {
4545 let tabBarHeight = shouldShowTabBar ? ( EditorTabBarView . height + 1 ) : 0
46- let pathBarHeight = showEditorPathBar ? ( EditorJumpBarView . height + 1 ) : 0
47- return tabBarHeight + pathBarHeight
46+ let jumpBarHeight = showEditorJumpBar ? ( EditorJumpBarView . height + 1 ) : 0
47+ return tabBarHeight + jumpBarHeight
4848 }
4949
5050 VStack {
@@ -89,7 +89,7 @@ struct EditorAreaView: View {
8989 . environmentObject ( editor)
9090 Divider ( )
9191 }
92- if showEditorPathBar {
92+ if showEditorJumpBar {
9393 EditorJumpBarView (
9494 file: editor. selectedTab? . file,
9595 shouldShowTabBar: shouldShowTabBar
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ struct GeneralSettingsView: View {
3737 Section {
3838 appearance
3939 fileIconStyle
40- showEditorPathBar
40+ showEditorJumpBar
4141 dimEditorsWithoutFocus
4242 navigatorTabBarPosition
4343 inspectorTabBarPosition
@@ -105,8 +105,8 @@ private extension GeneralSettingsView {
105105 Toggle ( " Show Live Issues " , isOn: $settings. showLiveIssues)
106106 }
107107
108- var showEditorPathBar : some View {
109- Toggle ( " Show Path Bar " , isOn: $settings. showEditorPathBar )
108+ var showEditorJumpBar : some View {
109+ Toggle ( " Show Jump Bar " , isOn: $settings. showEditorJumpBar )
110110 }
111111
112112 var dimEditorsWithoutFocus : some View {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ extension SettingsData {
2727 " Appearance " ,
2828 " File Icon Style " ,
2929 " Tab Bar Style " ,
30- " Show Path Bar " ,
30+ " Show Jump Bar " ,
3131 " Dim editors without focus " ,
3232 " Navigator Tab Bar Position " ,
3333 " Inspector Tab Bar Position " ,
@@ -51,8 +51,8 @@ extension SettingsData {
5151 . map { NSLocalizedString ( $0, comment: " " ) }
5252 }
5353
54- /// Show editor path bar
55- var showEditorPathBar : Bool = true
54+ /// Show editor jump bar
55+ var showEditorJumpBar : Bool = true
5656
5757 /// Dims editors without focus
5858 var dimEditorsWithoutFocus : Bool = false
@@ -115,9 +115,9 @@ extension SettingsData {
115115 Bool . self,
116116 forKey: . showLiveIssues
117117 ) ?? true
118- self . showEditorPathBar = try container. decodeIfPresent (
118+ self . showEditorJumpBar = try container. decodeIfPresent (
119119 Bool . self,
120- forKey: . showEditorPathBar
120+ forKey: . showEditorJumpBar
121121 ) ?? true
122122 self . dimEditorsWithoutFocus = try container. decodeIfPresent (
123123 Bool . self,
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ struct ViewCommands: Commands {
1313 var editorFontSize
1414 @AppSettings ( \. terminal. font. size)
1515 var terminalFontSize
16- @AppSettings ( \. general. showEditorPathBar )
17- var showEditorPathBar
16+ @AppSettings ( \. general. showEditorJumpBar )
17+ var showEditorJumpBar
1818 @AppSettings ( \. general. dimEditorsWithoutFocus)
1919 var dimEditorsWithoutFocus
2020
@@ -75,8 +75,8 @@ struct ViewCommands: Commands {
7575
7676 Divider ( )
7777
78- Button ( " \( showEditorPathBar ? " Hide " : " Show " ) Path Bar " ) {
79- showEditorPathBar . toggle ( )
78+ Button ( " \( showEditorJumpBar ? " Hide " : " Show " ) Jump Bar " ) {
79+ showEditorJumpBar . toggle ( )
8080 }
8181
8282 Toggle ( " Dim editors without focus " , isOn: $dimEditorsWithoutFocus)
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ A collection of all the views that make up the main app window.
2020- `` ImageFileView ``
2121- `` PDFFileView ``
2222
23- ### PathBar
23+ ### JumpBar
2424
25- - `` PathBarView ``
26- - `` PathBarComponent ``
27- - `` PathBarMenu ``
28- - `` PathBarMenuItem ``
25+ - `` JumpBarView ``
26+ - `` JumpBarComponent ``
27+ - `` JumpBarMenu ``
28+ - `` JumpBarMenuItem ``
2929
3030### Navigator Sidebar
3131
You can’t perform that action at this time.
0 commit comments