Commit Graph
172 Commits
Author SHA1 Message Date
Zef Hemel 2d45929ea8 Fixes #1966 2026-05-06 13:14:14 +02:00
Zef Hemel 60c2ecf4d8 editor: navigate, toggle, and render anchor refs 2026-04-30 19:44:30 +02:00
Zef Hemel 4149fbc287 Fixes #1936 2026-04-26 17:31:53 +02:00
Zef Hemel d0cb8e6c0e Menus: refactoring and renaming 2026-04-23 13:32:00 +02:00
Zef Hemel 1e5d35ab8d Simplified navigate home keyboard shortcut 2026-04-23 10:21:50 +02:00
Zef Hemel 47f9d9987c Annotated existing commands with menu placements 2026-04-23 10:16:49 +02:00
Zef Hemel 54da633d06 Move "Plugs: Reload" command to editor
Move `Plugs: Reload` from the plug-manager plug into the editor plug  alongside the other built-in client commands, ahead of removing plug-manager entirely.
2026-04-21 16:53:45 +02:00
Zef Hemel a446014e2c Fix: accidentally pulled in a huge amount of codemirror code by not using the parseMarkdown syscall in outline ops, whoopsies
Reduces the editor plug bundle size by about 600K
2026-04-21 16:52:50 +02:00
Zef Hemel 21ce019ede Editor: move built-in commands from plug to client
Cursor motions, selection, delete, undo/redo, completion, and the various navigator/palette openers are registered directly on the CommandHook from client code, eliminating the async plug round-trip that was racing Enter/Backspace handling in some cases (especially e2e tests).

CommandHook gains `registerCommand` and a shared `mergeCommand`  helper so built-ins, plug commands.
2026-04-21 10:05:38 +02:00
Zef Hemel efd827b721 Implements #510
Extracts almost all codemirror keyboard shortcuts into proper SB
commands so they can be rebound

Bonus: renders prettier versions of keyboard shortcuts on Mac
2026-04-17 16:45:11 +02:00
Zef Hemel e5f188e59e Tag enhancements
* tag.define now supports a `tagPage` attribute, allowing what page to
  send the user to when clicking on a hash tag in the editor
* index.contentPages() and index.metaPages() are convenience wrappers
  around the index.tag("page") collection that filter on content and
  meta pages respectively.
2026-04-01 08:44:50 +02:00
Zef Hemel 78a1dc92ac Fixes #1908
Now only "#meta" and "#meta/" prefixed tags are considered meta tags,
not "#metabase"
2026-03-26 14:03:49 +01:00
Zef Hemel 19d3328647 lint fixes 2026-03-13 09:24:52 +01:00
Zef Hemel 9581433cd3 Fixes #212: adds footnote support
Based on https://www.markdownlang.com/extended/footnotes.html

* Both "official" [^1] and [^1]: def
* And inline ^[My foot note]

Features:
* Properly parsed in markdown parser
* Syntax highlighting
* Live Preview to ... when on-hover preview of content, on-click moves
  cursor to definition
* Reference completion
* Invalid references are marked
2026-03-13 08:28:43 +01:00
Zef Hemel 799e27a9b4 Enable biome based formatter and reformat 2026-03-10 09:38:59 +01:00
Zef Hemel cce5b669f6 Merge branch 'main' into to-node 2026-03-10 08:57:58 +01:00
Zef Hemel a59fb566ae Add table row support also to outline commands
As requested in #1051
2026-03-09 14:58:02 +01:00
Zef Hemel dbe9e702aa Thorough redo of the outline operation commands
Fixes #606 and #908 improves #1051,
2026-03-09 14:52:06 +01:00
Zef Hemel bbcd9ac6aa Introduce new noFloatingPromises lint rule and fix violiations 2026-03-08 15:49:45 +01:00
Zef Hemel dbf275d75b Introduce biome as linter with lint fixes 2026-03-06 08:05:13 +01:00
Zef Hemel 17418fd7ec Pull reported client version number from system.getVersion() 2026-03-05 15:07:25 +01:00
Zef HemelandGitHub 0f3f963de0 Merge pull request #1833 from rktjmp/feat-upload-no-clobber
Dont clobber existing files when uploading
2026-02-26 09:28:27 +01:00
Oliver Marriott 274780e5e1 Match await flashNotification usage to existing code 2026-02-26 14:56:51 +11:00
Oliver Marriott ea590f8e27 Formatter 2026-02-26 14:27:25 +11:00
Oliver Marriott 9467e8af26 Convert arrow functions to regular function decls 2026-02-26 14:27:14 +11:00
rktjmpandGitHub f4bd2c3abc Trim user input from prompts where appropriate (#1854)
* Trim user input from prompts where appropriate

* Run formatter

* Use "page title" language instead of "page name" in notifications.

Existing language in prompt asks for a "page title".

* Use const for prefix inputs as they are never trimmed
2026-02-25 10:16:37 +01:00
Oliver Marriott db6f16fa6f Fix typing 2026-02-25 00:00:04 +11:00
Oliver Marriott 037e69c889 Add no-clobber behaviour to paste uploads 2026-02-25 00:00:04 +11:00
Oliver Marriott f22c1ce15c Check user input for null, trim otherwise 2026-02-25 00:00:04 +11:00
Oliver Marriott d8f0a7488b Prompt user before replacing files when using Upload file command 2026-02-25 00:00:04 +11:00
Zef Hemel dbf95f7fe2 Fix lint 2026-02-03 09:50:25 +01:00
Zef Hemel 9057702557 Merge Client: Clean into Client: Wipe and remove Client: Clean
Client: Wipe now also deletes redundant other databases.

Related to #1798
2026-02-03 09:48:01 +01:00
Zef Hemel 9667916c9c Adds "Page: Create Under Cursor" command
Command that allows creating a new page based on the wiki link under the
cursor.
2026-02-02 17:00:56 +01:00
Zef Hemel 0da5d97284 Refactor navigation commands and enhance page renaming logic
* Modified renamePage function in refactor.ts to ensure navigation to the new page occurs after the index queue is processed, so that linked mentions reflect updated data once arriving there
2026-02-02 16:40:58 +01:00
Zef Hemel c2b71d1740 Change syscall compatibility check to queryLuaObjects 2026-01-21 13:05:33 +01:00
Zef Hemel 8acad63565 Reorganized keyboard shortcuts a little bit and documented them. 2026-01-21 11:01:11 +01:00
Zef Hemel c25a073e81 WIP 2026-01-20 13:48:15 +01:00
Zef Hemel 1847f8e359 Fixes #1774 2026-01-15 11:22:13 +01:00
Zef Hemel cf49b9372f Add message queue flushing to Client: Clean 2026-01-15 08:42:06 +01:00
Zef Hemel ef961d5f79 Navigate: Copy Ref to Current Position and `Navigate: Copy Link to
Current Position` commands
2026-01-13 15:46:27 +01:00
Zef Hemel fb3dd51bdb Inline content refactor 2026-01-12 17:19:23 +01:00
Zef Hemel a0d3c9bfba Hack fix: show alert and force a reload when client code hasn't been
updated yet in cache.
2026-01-08 17:17:16 +01:00
Zef Hemel c93d656ac6 Significant refactor of index
* Moved YAML library import to index plug (so no async syscalls anymore)
  should speed things up
* Merged task and item indexing
* Merged tasks plug into index (questionable)
* taskstate is now no longer a tag, but needs to be configured via
  configs
2026-01-07 11:00:32 +01:00
Michael WeichertandGitHub 78b0b3ae9f feat: Add linkName attribute support for wiki link autocomplete (#1712)
Add support for a linkName frontmatter attribute that controls the alias
text inserted during wiki link autocomplete. The precedence order is:
linkName > displayName > page name.

This allows users to have separate link text from display name. For example,
a page for "Randy Mario Poffo" can have linkName: "Randy Savage" and
displayName: "Macho Man", resulting in [[Randy Mario Poffo|Randy Savage]]
when selected from autocomplete.
2025-12-10 08:39:45 +01:00
Zef Hemel a3b69bd47d Added Tag Picker
Bonus:
* Tag pages now include parent and child tags
* Optimized tag completion
2025-11-14 11:50:59 +01:00
Zef Hemel d890b741c8 Exclude plugs from completions 2025-11-07 11:13:27 +01:00
Zef Hemel 18bea2e113 Client: Clean command 2025-10-23 09:03:57 +02:00
Matouš Jan FialkaandGitHub 27339c98f6 Space Lua: Align arithmetic model with standard Lua (#1611)
* Align Space Lua arithmetic model with standard Lua
* Add missing __unm and __bnot metamethods
- add new basic tests
- add helper for negative tests
* Add comments for ASCII numeric constants

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2025-10-16 08:41:47 +02:00
MrMugameandGitHub 00af994d69 Fix navigation for Autolinks and clean up code (#1607) 2025-10-10 08:42:25 +02:00
Oleksandr KuvshynovandGitHub 42dc543be1 silverbullet: fix circular recent page deletion (#1599) 2025-10-07 21:01:44 +02:00