You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,6 +264,10 @@ All table operations in the slash command menu (`/`) are Pro features. Free user
264
264
265
265
See [Slash Commands](#slash-commands) for the full list of table commands.
266
266
267
+
### Create Note
268
+
269
+
Run **AS Notes: Create Note** from the Command Palette to create a new note. You will be prompted for a title and the file is created in the configured notes folder (default: `notes/`).
270
+
267
271
### Encrypted notes
268
272
269
273
Pro users can store sensitive notes in encrypted files. Any file with the `.enc.md` extension is treated as an encrypted note - it is excluded from the search index and never read as plain text by the extension.
@@ -283,7 +287,7 @@ Pro users can store sensitive notes in encrypted files. Any file with the `.enc.
283
287
**Commands:**
284
288
-`AS Notes: Set Encryption Key` - save passphrase to OS keychain
285
289
-`AS Notes: Clear Encryption Key` - remove the stored passphrase
286
-
-`AS Notes: Create Encrypted Note` - create a new named `.enc.md` file
290
+
-`AS Notes: Create Encrypted Note` - create a new named `.enc.md` file in the notes folder
-`AS Notes: Encrypt All Notes` - encrypt all plaintext `.enc.md` files
289
293
-`AS Notes: Decrypt All Notes` - decrypt all encrypted `.enc.md` files
@@ -374,7 +378,9 @@ Nesting works to arbitrary depth. The extension always identifies the innermost
374
378
375
379
### Auto-create missing pages
376
380
377
-
Navigating to a page that doesn't exist creates it automatically, so you can write forward-references before the target page exists.
381
+
Navigating to a page that doesn't exist creates it automatically in the configured notes folder (default: `notes/`). You can write forward-references before the target page exists.
382
+
383
+
When `as-notes.createNotesInCurrentDirectory` is enabled, new pages are created in the current editing file's directory instead, unless the source file is in the journal folder (in which case the notes folder is always used).
378
384
379
385
### Hover tooltips
380
386
@@ -656,6 +662,8 @@ Front-matter holds the structured fields; the Markdown body is the card descript
656
662
|---|---|---|
657
663
|`as-notes.periodicScanInterval`|`300`| Seconds between automatic background scans for file changes. Set to `0` to disable. Minimum: `30`. |
658
664
|`as-notes.journalFolder`|`journals`| Folder for daily journal files, relative to workspace root. |
665
+
|`as-notes.notesFolder`|`notes`| Folder for new notes, relative to workspace root. Used when creating pages via wikilink navigation and the Create Note / Create Encrypted Note commands. |
666
+
|`as-notes.createNotesInCurrentDirectory`|`false`| When enabled, new notes created via wikilink navigation are placed in the current editing file's directory instead of the notes folder. Ignored when the source file is in the journal folder. |
659
667
|`as-notes.templateFolder`|`templates`| Folder for note templates, relative to workspace root. Templates are markdown files inserted via the `/Template` slash command. |
660
668
|`as-notes.licenceKey`|*(empty)*| AS Notes Pro licence key (format: `ASNO-XXXX-XXXX-XXXX-XXXX`). Enter via **AS Notes: Enter Licence Key** in the Command Palette or directly in Settings. Scope: machine (not synced). |
661
669
|`as-notes.enableLogging`|`false`| Enable diagnostic logging to `.asnotes/logs/`. Rolling 10 MB files, max 5. Requires reload after changing. Also activated by setting the `AS_NOTES_DEBUG=1` environment variable. |
Copy file name to clipboardExpand all lines: TECHNICAL.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1235,7 +1235,15 @@ The command URI carries:
1235
1235
{directory of source file}/{pageFileName}.md
1236
1236
```
1237
1237
1238
-
All target files live in the same directory as the file containing the link. There is no support for cross-directory linking — this is intentional to keep the mental model simple (one folder = one wiki).
1238
+
This is used by the rename tracker where the file already exists in a known location.
1239
+
1240
+
`WikilinkFileService.resolveNewFileTargetUri()` determines where **new** files should be created, respecting user settings:
1241
+
1242
+
- By default, new files are created in the configured `notesFolder` (default: `notes/`).
1243
+
- When `createNotesInCurrentDirectory` is enabled, new files are placed in the source file's directory -- unless the source file is inside the journal folder, in which case the notes folder is always used.
1244
+
- Used by `WikilinkDocumentLinkProvider`, the `navigateToPage` context menu command, and the `navigateWikilink` command.
1245
+
1246
+
All target files can live anywhere in the workspace. The index handles global resolution.
1239
1247
1240
1248
### Case-insensitive matching
1241
1249
@@ -1858,7 +1866,7 @@ The `as-notes.navigateToPage` command (registered in `extension.ts`) enables rig
1858
1866
1859
1867
1. Extracts all wikilinks from the current line
1860
1868
2. Finds the innermost wikilink at the cursor position via `WikilinkService.findInnermostWikilinkAtOffset()`
1861
-
3. Resolves the target URI via `WikilinkFileService.resolveTargetUri()`
1869
+
3. Resolves the target URI via `WikilinkFileService.resolveNewFileTargetUri()` (respects `notesFolder` and `createNotesInCurrentDirectory` settings)
1862
1870
4. Calls `WikilinkFileService.navigateToFile()` — which uses index-aware resolution (global filename match, alias support, case-insensitive fallback) and auto-creates the file if it doesn't exist
1863
1871
1864
1872
This provides the same navigation as Ctrl+click (DocumentLink) but via an explicit context menu entry. The command appears in the `editor/context` menu alongside "View Backlinks" when `as-notes.fullMode` is active and the editor language is markdown.
@@ -2647,6 +2655,10 @@ Tests use vitest and are split across fourteen test files (key files described b
2647
2655
2648
2656
1.**Path distance** (10 tests) — same directory (0), nested subdirectory (1), sibling directories (2), root to deep (3), deep to root (3), divergent paths, case-insensitive comparison, deeply nested to root, same prefix different branch, single segment root.
Copy file name to clipboardExpand all lines: vs-code-extension/package.json
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,10 @@
102
102
"command": "as-notes.decryptNotes",
103
103
"title": "AS Notes: Decrypt All Notes"
104
104
},
105
+
{
106
+
"command": "as-notes.createNote",
107
+
"title": "AS Notes: Create Note"
108
+
},
105
109
{
106
110
"command": "as-notes.createEncryptedFile",
107
111
"title": "AS Notes: Create Encrypted Note"
@@ -276,6 +280,16 @@
276
280
"type": "string",
277
281
"default": "templates",
278
282
"description": "Folder for note templates, relative to workspace root. Templates are markdown files that can be inserted via the /Template slash command."
283
+
},
284
+
"as-notes.notesFolder": {
285
+
"type": "string",
286
+
"default": "notes",
287
+
"description": "Folder for new notes, relative to workspace root. Used when creating pages via wikilink navigation and the Create Note / Create Encrypted Note commands."
288
+
},
289
+
"as-notes.createNotesInCurrentDirectory": {
290
+
"type": "boolean",
291
+
"default": false,
292
+
"description": "When enabled, new notes created via wikilink navigation are placed in the current editing file's directory instead of the notes folder. Ignored when the source file is in the journal folder."
0 commit comments