-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not be used in windows platrom. Can not access vault name #23
Comments
Seems like the funciton named local function get_vault_name(path)
local current_path = vim.fn.expand(path)
- while current_path ~= "/" do
- local obsidian_folder = current_path .. "/.obsidian"
- if vim.fn.isdirectory(obsidian_folder) == 1 then
- local vault_name = obsidian_folder:match("/([^/]+)/%.obsidian$")
- return vault_name:gsub("([^%w])", "%%%1")
- end
- current_path = vim.fn.fnamemodify(current_path, ":h")
- end
+ while current_path ~= "/" do
+ local obsidian_folder = current_path .. "\\.obsidian"
+ if vim.fn.isdirectory(obsidian_folder) == 1 then
+ local vault_name = vim.fn.fnamemodify(current_path, ":t")
+ print("obsidian_folder is " .. obsidian_folder)
+ print("vault_name is " .. vault_name)
+ return vault_name:gsub("([^%w])", "%%%1")
+ end
+ current_path = vim.fn.fnamemodify(current_path, ":h")
+ end
return false
|
But I got this error as follows, post https://localhost:27124/open/TODO.md - curl error exit_code=60 stderr={ "curl: (60) schannel: SEC_E_UNTRUSTED_ROOT (0x80090325) - ֤<ca><e9>t<ca><c7><d3>ɲ<bb><ca><dc><d0><c5><c8>İ䷢<bb><fa><b9><b9><b0>䷢<b5>ġ<a3>", "More details here: https://curl.se/docs/sslcerts.html", "", "curl failed to verify the legitimacy of the server and therefore could not", "establish a secure connection to it. To learn more about this situation and", "how to fix it, please visit the webpage mentioned above." } Do you Guys know how to tackle it ? |
This seems like an SSL cert error. Try enabling the HTTP server in the Local REST Api Obsidian plugin. If that does not work either, I suspect your vault name has some unusual characters in it. |
For some reason on I get this error on my PC but don't on my laptop, even though it's both Linux Debian and the same nvim config. So on my PC I have to use HTTP instead of HTTPS |
@RobberFox could you try using the |
The text was updated successfully, but these errors were encountered: