Skip to content
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
3 changes: 2 additions & 1 deletion src/lang/ar-ye.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/be-by.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,6 @@
"changelog": "Журнал змен",
"notifications": "Апавяшчэнні",
"no_unread_notifications": "Няма непрачытаных апавяшчэнняў",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/bn-bd.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/cs-cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/de-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Änderungsbericht",
"notifications": "Benachrichtigungen",
"no_unread_notifications": "Keine ungelesenen Benachrichtigungen",
"should_use_current_file_for_preview": "Sollte die aktuelle Datei für die Vorschau verwenden, anstatt dem Standard (index.html)"
"should_use_current_file_for_preview": "Sollte die aktuelle Datei für die Vorschau verwenden, anstatt dem Standard (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/es-sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/fr-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/hi-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/hu-hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Változáslista",
"notifications": "Értesítések",
"no_unread_notifications": "Nincsenek olvasatlan értesítések",
"should_use_current_file_for_preview": "A jelenlegi fájl használata az előnézethez az alapértelmezett (index.html) helyett"
"should_use_current_file_for_preview": "A jelenlegi fájl használata az előnézethez az alapértelmezett (index.html) helyett",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/id-id.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,5 +393,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/ir-fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/it-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/ko-kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/ml-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/mm-unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/mm-zawgyi.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/pl-pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Dziennik zmian",
"notifications": "Powiadomienia",
"no_unread_notifications": "Brak nieodczytanych powiadomień",
"should_use_current_file_for_preview": "Należy użyć bieżącego pliku do podglądu zamiast domyślnego (index.html)"
"should_use_current_file_for_preview": "Należy użyć bieżącego pliku do podglądu zamiast domyślnego (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Registro de Alterações",
"notifications": "Notificações",
"no_unread_notifications": "Sem notificações não lidas",
"should_use_current_file_for_preview": "Deve usar o arquivo atual para pré-visualização em vez do padrão (index.html)"
"should_use_current_file_for_preview": "Deve usar o arquivo atual para pré-visualização em vez do padrão (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/pu-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/ru-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/tl-ph.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/tr-tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/uk-ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/uz-uz.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "Change Log",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/vi-vn.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,5 +392,6 @@
"changelog": "Nhật Ký Thay Đổi",
"notifications": "Notifications",
"no_unread_notifications": "No unread notifications",
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)"
"should_use_current_file_for_preview": "Should use Current File For preview instead of default (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "更新日志",
"notifications": "消息通知",
"no_unread_notifications": "没有未读消息",
"should_use_current_file_for_preview": "应使当前文件用于预览页面而非使用默认文件 (index.html)"
"should_use_current_file_for_preview": "应使当前文件用于预览页面而非使用默认文件 (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/zh-hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "更新日誌",
"notifications": "消息通知",
"no_unread_notifications": "沒有未讀消息",
"should_use_current_file_for_preview": "應使當前文件用於預覽頁面而非使用默認文件 (index.html)"
"should_use_current_file_for_preview": "應使當前文件用於預覽頁面而非使用默認文件 (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
3 changes: 2 additions & 1 deletion src/lang/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@
"changelog": "更新日誌",
"notifications": "通知",
"no_unread_notifications": "沒有未讀的通知",
"should_use_current_file_for_preview": "應使用目前的檔案作為預覽頁面,而不是預設檔案 (index.html)"
"should_use_current_file_for_preview": "應使用目前的檔案作為預覽頁面,而不是預設檔案 (index.html)",
"fade fold widgets": "Fade Fold Widgets"
}
5 changes: 5 additions & 0 deletions src/lib/editorManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ async function EditorManager($header, $body) {
updateMargin(true);
});

appSettings.on("update:fadeFoldWidgets", function (value) {
editor.setOption("fadeFoldWidgets", value);
});

return manager;

/**
Expand Down Expand Up @@ -387,6 +391,7 @@ async function EditorManager($header, $body) {
editor.setOption("enableBasicAutocompletion", true);
editor.setOption("enableLiveAutocompletion", settings.liveAutoCompletion);
editor.setOption("copyWithEmptySelection", true);
editor.setOption("fadeFoldWidgets", settings.fadeFoldWidgets);
// editor.setOption('enableInlineAutocompletion', settings.inlineAutoCompletion);

updateMargin(true);
Expand Down
1 change: 1 addition & 0 deletions src/lib/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class Settings {
retryRemoteFsAfterFail: true,
linenumbers: true,
formatOnSave: false,
fadeFoldWidgets: false,
autoCorrect: true,
openFileListPos: this.OPEN_FILE_LIST_POS_HEADER,
quickTools: this.#IS_TABLET ? 0 : 1,
Expand Down
5 changes: 5 additions & 0 deletions src/settings/editorSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ export default function editorSettings() {
text: strings["use textarea for ime"],
checkbox: values.useTextareaForIME,
},
{
key: "fadeFoldWidgets",
text: strings["fade fold widgets"],
checkbox: values.fadeFoldWidgets,
},
{
index: 0,
key: "scroll-settings",
Expand Down