mirror of
https://github.com/priyanshujain/margin-docs.git
synced 2026-10-02 11:07:05 +00:00
feature fixes
This commit is contained in:
1 parent
1b31e2f189
commit
586ee946d0
38 files changed
+1938
-260
No files matched your search
@@ -10,6 +10,17 @@ export const rootClose = (rootId: string) => call<void>("root_close", { rootId }
|
||||
/** The whole tree for one root, root node included. */
|
||||
export const treeRead = (rootId: string) => call<FileNode>("tree_read", { rootId });
|
||||
|
||||
/**
|
||||
* Every markdown document in one root, for the link rewrite sweep rather than for the tree.
|
||||
*
|
||||
* It walks past a .gitignore, which the tree does not, because a link inside an ignored draft is
|
||||
* still a link that breaks when the file it points at moves, and a sidebar's reasons for hiding a
|
||||
* file are not reasons to leave its links wrong. More than `limit` paths coming back means the root
|
||||
* holds more documents than the sweep is willing to read.
|
||||
*/
|
||||
export const sweepDocuments = (rootId: string, limit: number) =>
|
||||
call<string[]>("sweep_documents", { rootId, limit });
|
||||
|
||||
export const revealInFinder = (path: string) => call<void>("reveal_in_finder", { path });
|
||||
|
||||
/** Hands a file to whatever macOS opens it with. The only way to open a non-editable file. */
|
||||
|
||||
Reference in new issue
Block a user