-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit - refactor completion/node into API (#15)
* Refactor completion/node modules into API * Add all API documentation * Remove underscores from headlines in docs for bindings
- Loading branch information
1 parent
0c5e9c5
commit ca35ff2
Showing
11 changed files
with
886 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
------------------------------------------------------------------------------- | ||
-- API.LUA | ||
-- | ||
-- Contains the API for the roam plugin. | ||
------------------------------------------------------------------------------- | ||
|
||
local CompletionApi = require("org-roam.api.completion") | ||
local NodeApi = require("org-roam.api.node") | ||
local open_quickfix = require("org-roam.ui.quickfix") | ||
local open_node_view = require("org-roam.ui.node-view") | ||
|
||
---@class org-roam.Api | ||
local M = {} | ||
|
||
M.capture_node = NodeApi.capture | ||
M.complete_node = CompletionApi.complete_node_under_cursor | ||
M.find_node = NodeApi.find | ||
M.insert_node = NodeApi.insert | ||
M.open_node_buffer = open_node_view | ||
M.open_quickfix_list = open_quickfix | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters