Skip to content

Commit 150523b

Browse files
authored
fix: ignore with glob patterns (#1086)
1 parent 8734d88 commit 150523b

File tree

22 files changed

+105
-38
lines changed

22 files changed

+105
-38
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint and Test
1+
name: Lint and Test Code
22

33
on:
44
pull_request:
@@ -8,7 +8,7 @@ env:
88
COREPACK_ENABLE_STRICT: 0
99

1010
jobs:
11-
lint_and_test:
11+
lint_and_test_code:
1212
runs-on: ubuntu-latest
1313

1414
steps:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
},
4848
"dependencies": {
4949
"chart.js": "^4.4.4",
50+
"minimatch": "^10.0.1",
5051
"pagerank.js": "^1.0.2",
5152
"peggy": "^4.0.3"
5253
},

pnpm-lock.yaml

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/gui/flashcard-review-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export class FlashcardReviewView {
360360
}
361361
result += separator + context;
362362
});
363-
return result + separator + "...";
363+
return result;
364364
}
365365

366366
// -> Header

src/lang/locale/ar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default {
7171
PROJECT_CONTRIBUTIONS:
7272
'Raise an issue <a href="${issues_url}">here</a> if you have a feature request or a bug-report',
7373
FOLDERS_TO_IGNORE: "مجلدات لتجاهلها",
74-
FOLDERS_TO_IGNORE_DESC: `Templates Meta/Scripts.
75-
Note that this setting is common to both Flashcards and Notes. : أدخل مسارات المجلد مفصولة بواسطة سطور جديدة,مثال`,
74+
FOLDERS_TO_IGNORE_DESC:
75+
"Enter folder paths or glob patterns on separate lines e.g. Templates Meta/Scripts or **/*.excalidraw.md. This setting is common to both flashcards and notes.",
7676
OBSIDIAN_INTEGRATION: "Integration into Obsidian",
7777
FLASHCARDS: "البطاقات",
7878
FLASHCARD_EASY_LABEL: "نص الزر سهل",

src/lang/locale/cz.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default {
7171
PROJECT_CONTRIBUTIONS:
7272
'Raise an issue <a href="${issues_url}">here</a> if you have a feature request or a bug-report',
7373
FOLDERS_TO_IGNORE: "Ignorované složky",
74-
FOLDERS_TO_IGNORE_DESC: `Zadejte cesty ke složkám oddělené odřádkováním napříkad. Šablony Meta/Scripts.
75-
Note that this setting is common to both Flashcards and Notes.`,
74+
FOLDERS_TO_IGNORE_DESC:
75+
"Enter folder paths or glob patterns on separate lines e.g. Templates Meta/Scripts or **/*.excalidraw.md. This setting is common to both flashcards and notes.",
7676
OBSIDIAN_INTEGRATION: "Integration into Obsidian",
7777
FLASHCARDS: "Kartičky",
7878
FLASHCARD_EASY_LABEL: "Easy Button Text",

src/lang/locale/de.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export default {
7777
PROJECT_CONTRIBUTIONS:
7878
'Raise an issue <a href="${issues_url}">here</a> if you have a feature request or a bug-report',
7979
FOLDERS_TO_IGNORE: "Ausgeschlossene Ordner",
80-
FOLDERS_TO_IGNORE_DESC: `Mehrere Ordner mit Zeilenumbrüchen getrennt angeben. Bsp. OrdnerA[Zeilenumbruch]OrdnerB/Unterordner.
81-
Note that this setting is common to both Flashcards and Notes.`,
80+
FOLDERS_TO_IGNORE_DESC:
81+
"Enter folder paths or glob patterns on separate lines e.g. Templates Meta/Scripts or **/*.excalidraw.md. This setting is common to both flashcards and notes.",
8282
OBSIDIAN_INTEGRATION: "Integration into Obsidian",
8383
FLASHCARDS: "Lernkarten",
8484
FLASHCARD_EASY_LABEL: "Einfach Knopf Text",

src/lang/locale/en.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default {
7171
PROJECT_CONTRIBUTIONS:
7272
'Raise an issue <a href="${issues_url}">here</a> if you have a feature request or a bug-report',
7373
FOLDERS_TO_IGNORE: "Folders to ignore",
74-
FOLDERS_TO_IGNORE_DESC: `Enter folder paths separated by newlines e.g. Templates Meta/Scripts.
75-
Note that this setting is common to both Flashcards and Notes.`,
74+
FOLDERS_TO_IGNORE_DESC:
75+
"Enter folder paths or glob patterns on separate lines e.g. Templates Meta/Scripts or **/*.excalidraw.md. This setting is common to both flashcards and notes.",
7676
OBSIDIAN_INTEGRATION: "Integration into Obsidian",
7777
FLASHCARDS: "Flashcards",
7878
FLASHCARD_EASY_LABEL: "Easy Button Text",

src/lang/locale/es.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default {
7171
PROJECT_CONTRIBUTIONS:
7272
'Raise an issue <a href="${issues_url}">here</a> if you have a feature request or a bug-report',
7373
FOLDERS_TO_IGNORE: "Directorios a ignorar",
74-
FOLDERS_TO_IGNORE_DESC: `Escriba las rutas de los directorios separadas por saltos de línea, por ejemplo, Plantillas Extra/Guiones.
75-
Note that this setting is common to both Flashcards and Notes.`,
74+
FOLDERS_TO_IGNORE_DESC:
75+
"Enter folder paths or glob patterns on separate lines e.g. Templates Meta/Scripts or **/*.excalidraw.md. This setting is common to both flashcards and notes.",
7676
OBSIDIAN_INTEGRATION: "Integration into Obsidian",
7777
FLASHCARDS: "Tarjetas de Memorización",
7878
FLASHCARD_EASY_LABEL: "Texto del botón: Fácil",

src/lang/locale/fr.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export default {
7272
PROJECT_CONTRIBUTIONS:
7373
'Créez un ticket <a href="${issues_url}">sur GitHub</a> si vous trouvez un bug ou voulez demander une fonctionnalité',
7474
FOLDERS_TO_IGNORE: "Dossiers à ignorer",
75-
FOLDERS_TO_IGNORE_DESC: `Entrez les chemins des dossiers. Un chemin par ligne, ex. Templates Meta/Scripts.
76-
Ce réglage est le même pour les flashcards et les notes.`,
75+
FOLDERS_TO_IGNORE_DESC:
76+
"Enter folder paths or glob patterns on separate lines e.g. Templates Meta/Scripts or **/*.excalidraw.md. This setting is common to both flashcards and notes.",
7777
OBSIDIAN_INTEGRATION: "Integration into Obsidian",
7878
FLASHCARDS: "Flashcards",
7979
FLASHCARD_EASY_LABEL: "Bouton Facile",

0 commit comments

Comments
 (0)