Skip to content
Open
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
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"features": {
"ghcr.io/devcontainers/features/node:2.0": {
"version": "2.0.0",
"resolved": "ghcr.io/devcontainers/features/node@sha256:fedd4c11f7adfb64283b578dddc7da906728daa25fa293351c9d913231acf12f",
"integrity": "sha256:fedd4c11f7adfb64283b578dddc7da906728daa25fa293351c9d913231acf12f"
},
"ghcr.io/nordcominc/devcontainer-features/android-sdk:1": {
"version": "1.2.0",
"resolved": "ghcr.io/nordcominc/devcontainer-features/android-sdk@sha256:c3e0c7e1b12fce18a257e163ade8515e534e58a7edad10dfb6d1fb1a250a307e",
"integrity": "sha256:c3e0c7e1b12fce18a257e163ade8515e534e58a7edad10dfb6d1fb1a250a307e"
}
}
}
36 changes: 20 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
node_modules
/build.json
/www/build
/plugins
/platforms
/keystore.jks
/platforms/android/debug-signing.properties
/platforms/android/release-signing.properties
**/*/.DS_Store
.DS_Store
pnpm-lock.yaml
.zed
.idea
ace-builds
fdroid.bool
tsconfig.tsbuildinfo
/node_modules
/build.json
/www/build
/plugins
/platforms
/keystore.jks
/platforms/android/debug-signing.properties
/platforms/android/release-signing.properties
**/*/.DS_Store
.DS_Store
pnpm-lock.yaml
.zed
.idea
ace-builds
fdroid.bool
CLAUDE.md
graphify-out/
.graphify_python
.gradle/
local.properties
12 changes: 12 additions & 0 deletions gradle/gradle-daemon-jvm.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/491f83666ae7f4d6ebb28fee72ebb035/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/0d1a1acdc708062093673f65aa9aba4b/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/491f83666ae7f4d6ebb28fee72ebb035/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/0d1a1acdc708062093673f65aa9aba4b/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/7083b89563e7ce20943037b8cd2b8cc2/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/060bbb778a1f55ea705fdebd2ccfeab9/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/491f83666ae7f4d6ebb28fee72ebb035/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/0d1a1acdc708062093673f65aa9aba4b/redirect
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d09679dc60fe5aa05ef7d03efdefac20/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/ed4e3bf2f5e7c5d9aabc4cbd8acd555e/redirect
toolchainVersion=21
62 changes: 62 additions & 0 deletions src/cm/lineBreakMarker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { Decoration, DecorationSet, ViewPlugin, WidgetType, EditorView, ViewUpdate } from "@codemirror/view";

class NewlineWidget extends WidgetType {
toDOM(): HTMLElement {
let span = document.createElement("span");
span.textContent = "¬";
span.className = "cm-newline-marker";
return span;
}
eq(other: WidgetType): boolean {
return other instanceof NewlineWidget;
}
}

export const lineBreakMarkerPlugin = ViewPlugin.fromClass(
class {
decorations: DecorationSet;

constructor(view: EditorView) {
this.decorations = this.getDecorations(view);
}

update(update: ViewUpdate) {
if (update.docChanged || update.viewportChanged) {
this.decorations = this.getDecorations(update.view);
}
}

getDecorations(view: EditorView): DecorationSet {
let widgets: import("@codemirror/state").Range<Decoration>[] = [];
for (let { from, to } of view.visibleRanges) {
for (let pos = from; pos <= to; ) {
let line = view.state.doc.lineAt(pos);
if (line.number < view.state.doc.lines) {
let deco = Decoration.widget({
widget: new NewlineWidget(),
side: 1,
});
widgets.push(deco.range(line.to));
}
pos = line.to + 1;
}
}
return Decoration.set(widgets);
}
},
{
decorations: (v) => v.decorations,
},
);

export const lineBreakMarkerTheme = EditorView.theme({
".cm-newline-marker": {
color: "var(--cm-space-marker-color, rgba(127, 127, 127, 0.6))",
pointerEvents: "none",
userSelect: "none",
},
});

export const lineBreakMarker = [lineBreakMarkerPlugin, lineBreakMarkerTheme];

export default lineBreakMarker;
4 changes: 3 additions & 1 deletion src/lang/ar-ye.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "لن تتم مزامنة عملية الشراء هذه مع حساب Acode الخاص بك. استخدم نفس حساب Google في متجر Play لاستعادة عملية الشراء.",
"confirm-login": "لم تقم بتسجيل الدخول إلى Acode، هل تريد تسجيل الدخول الآن؟",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/be-by.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Гэтая пакупка не будзе сінхранізавана з вашым уліковым запісам Acode. Выкарыстоўвайце той жа ўліковы запіс Google у Play Store для аднаўлення пакупкі.",
"confirm-login": "Вы не ўвайшлі ў Acode, увайсці зараз?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/bn-bd.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "এই ক্রয়টি আপনার Acode অ্যাকাউন্টের সাথে সিঙ্ক হবে না। আপনার ক্রয় পুনরুদ্ধার করতে প্লে স্টোরে একই Google অ্যাকাউন্ট ব্যবহার করুন।",
"confirm-login": "আপনি Acode-এ সাইন ইন করেননি, এখন সাইন ইন করবেন?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/cs-cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Tento nákup nebude synchronizován s vaším účtem Acode. Pro obnovení nákupu použijte stejný účet Google v Obchodě Play.",
"confirm-login": "Nejste přihlášeni do Acode, přihlásit se nyní?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/de-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Dieser Kauf wird nicht mit Ihrem Acode-Konto synchronisiert. Verwenden Sie dasselbe Google-Konto im Play Store, um Ihren Kauf wiederherzustellen.",
"confirm-login": "Sie sind nicht bei Acode angemeldet, jetzt anmelden?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"show hidden files": "Show hidden files",
"show share button": "Show share button",
"show spaces": "Show spaces",
"show line break marker": "Show line break marker",
"soft tab": "Soft tab",
"sort by name": "Sort by name",
"success": "Success",
Expand Down Expand Up @@ -737,5 +738,6 @@
"login-to-view": "Please login to view this...",
"iap-plugin-purchase-warning": "Purchased plugin are not synced to your Acode account. Use same Google account in play store to restore your purchase.",
"iap-pro-purchase-warning": "This purchase will not be synced to your Acode account. Use same Google account in play store to restore your purchase.",
"confirm-login": "You are not singed in to Acode, sign in now?"
"confirm-login": "You are not singed in to Acode, sign in now?",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled"
}
4 changes: 3 additions & 1 deletion src/lang/es-sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Esta compra no se sincronizará con tu cuenta de Acode. Usa la misma cuenta de Google en Play Store para restaurar tu compra.",
"confirm-login": "No has iniciado sesión en Acode, ¿iniciar sesión ahora?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/fr-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Cet achat ne sera pas synchronisé avec votre compte Acode. Utilisez le même compte Google dans le Play Store pour restaurer votre achat.",
"confirm-login": "Vous n'êtes pas connecté à Acode, vous connecter maintenant ?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/he-il.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "רכישה זו לא תסונכרן עם חשבון Acode שלך. השתמש באותו חשבון Google בחנות Play כדי לשחזר את הרכישה שלך.",
"confirm-login": "אינך מחובר ל-Acode, להתחבר עכשיו?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/hi-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "यह खरीदारी आपके Acode खाते से सिंक नहीं होगी। अपनी खरीदारी पुनर्स्थापित करने के लिए Play Store में उसी Google खाते का उपयोग करें।",
"confirm-login": "आप Acode में साइन इन नहीं हैं, अभी साइन इन करें?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/hu-hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Ez a vásárlás nem lesz szinkronizálva az Acode-fiókjával. Használja ugyanazt a Google-fiókot a Play Áruházban a vásárlás visszaállításához.",
"confirm-login": "Nincs bejelentkezve az Acode-ba, bejelentkezik most?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/id-id.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Pembelian ini tidak akan disinkronkan ke akun Acode Anda. Gunakan akun Google yang sama di Play Store untuk memulihkan pembelian Anda.",
"confirm-login": "Anda belum masuk ke Acode, masuk sekarang?",
"local word completion": "Penyelesaian kata lokal",
"settings-info-editor-local-word-completion": "Sarankan kata dari berkas saat ini."
"settings-info-editor-local-word-completion": "Sarankan kata dari berkas saat ini.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
2 changes: 2 additions & 0 deletions src/lang/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ declare type LangStrings = {
"show hidden files": string;
"show share button": string;
"show spaces": string;
"show line break marker": string;
"soft tab": string;
"sort by name": string;
"success": string;
Expand Down Expand Up @@ -741,6 +742,7 @@ declare type LangStrings = {
"iap-plugin-purchase-warning": string;
"iap-pro-purchase-warning": string;
"confirm-login": string;
"settings-info-editor-show-line-break-marker": string;
};

declare var strings: LangStrings;
4 changes: 3 additions & 1 deletion src/lang/ir-fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "این خرید با حساب Acode شما همگام‌سازی نخواهد شد. برای بازیابی خرید خود از همان حساب Google در فروشگاه Play استفاده کنید.",
"confirm-login": "شما وارد Acode نشده‌اید، اکنون وارد شوید؟",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/it-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "Questo acquisto non verrà sincronizzato con il tuo account Acode. Usa lo stesso account Google nel Play Store per ripristinare l'acquisto.",
"confirm-login": "Non hai effettuato l'accesso ad Acode, accedere ora?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "この購入はAcodeアカウントと同期されません。購入を復元するには、Playストアで同じGoogleアカウントを使用してください。",
"confirm-login": "Acodeにサインインしていません。今すぐサインインしますか?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/ko-kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "이 구매는 Acode 계정과 동기화되지 않습니다. 구매를 복원하려면 Play 스토어에서 동일한 Google 계정을 사용하세요.",
"confirm-login": "Acode에 로그인되어 있지 않습니다. 지금 로그인하시겠습니까?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/ml-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "ഈ വാങ്ങൽ നിങ്ങളുടെ Acode അക്കൗണ്ടുമായി സമന്വയിപ്പിക്കില്ല. നിങ്ങളുടെ വാങ്ങൽ പുനഃസ്ഥാപിക്കാൻ Play Store-ൽ അതേ Google അക്കൗണ്ട് ഉപയോഗിക്കുക.",
"confirm-login": "നിങ്ങൾ Acode-ൽ സൈൻ ഇൻ ചെയ്തിട്ടില്ല, ഇപ്പോൾ സൈൻ ഇൻ ചെയ്യണോ?",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/mm-unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "ဤဝယ်ယူမှုသည် သင့် Acode အကောင့်နှင့် ထပ်တူပြုမည်မဟုတ်ပါ။ သင့်ဝယ်ယူမှုကို ပြန်လည်ရယူရန် Play Store တွင် တူညီသော Google အကောင့်ကို အသုံးပြုပါ။",
"confirm-login": "သင်သည် Acode သို့ အကောင့်ဝင်ထားခြင်းမရှိပါ၊ ယခု အကောင့်ဝင်မလား။",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
4 changes: 3 additions & 1 deletion src/lang/mm-zawgyi.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,5 +737,7 @@
"iap-pro-purchase-warning": "ဤဝယ္ယူမႈသည္ သင့္ Acode အေကာင့္ႏွင့္ ထပ္တူျပဳမည္မဟုတ္ပါ။ သင့္ဝယ္ယူမႈကို ျပန္လည္ရယူရန္ Play Store တြင္ တူညီေသာ Google အေကာင့္ကို အသုံးျပဳပါ။",
"confirm-login": "သင္သည္ Acode သို႔ အေကာင့္ဝင္ထားျခင္းမရွိပါ၊ ယခု အေကာင့္ဝင္မလား။",
"local word completion": "Local word completion",
"settings-info-editor-local-word-completion": "Suggest words from the current file."
"settings-info-editor-local-word-completion": "Suggest words from the current file.",
"settings-info-editor-show-line-break-marker": "Displays a visual marker (¬) for true line breaks when text wrapping is enabled",
"show line break marker": "Show line break marker"
}
Loading