ilyasyoy / obs.nvim Goto Github PK
View Code? Open in Web Editor NEWObsidian-like NeoVim plugin.
License: Apache License 2.0
Obsidian-like NeoVim plugin.
License: Apache License 2.0
require("obs").setup({
vault_home = "~/Obsidian",
})
vim.keymap.set("n", "<leader>nT", function()
obs.vault:run_if_note(function()
obs.vault:find_and_insert_template()
end)
end, { desc = "Inserts notes Template" })
local Path = require("plenary.path")
require("obs").setup({
vault_home = (Path:new(Path.path.home) / "Obsidian"):absolute(),
})
---checks if this buffer in the vault, usefull in autocommands.
---@return boolean
function Vault:is_current_buffer_in_vault()
local file_name = vim.api.nvim_buf_get_name(0)
return core.string_has_prefix(file_name, self._home_path:absolute(), true)
end
---checks if this buffer in the vault, usefull in autocommands.
---@return boolean
function Vault:is_current_buffer_in_vault()
local file_name = vim.api.nvim_buf_get_name(0)
return core.string_has_prefix(file_name, self._home_path:expand(), true)
end
As a heavy Obsdiain user I like their Move current file to another folder
command. I'd like to have a similar dialog.
I see possible solution might be implemented using telescope search through directories and custom selection handler.
I move files manually using neo-tree. Usually I use Obsidian to handle file management.
Obsidian supports weekly notes. The support is provided via third-party plugin: https://github.com/liamcain/obsidian-calendar-plugin.
I'd like to have API similar to existing of daily notes. API might be a part of Journal abstraction.
Using telescope to search already created weekly notes is fine. But it's read-only way to interact with them.
Obsidian allow me to interact with TODO-list item using commands:
That'd be cool to have a similar feature here.
The Vault abstraction might provide a method which will cycle through different list options:
Doing it manually is fine, but not very convenient. I use lua-snip to ease the pain.
As a user I want tot have a way to search through all todos in the vault.
We might be able to populate telescope search with items from files in the vault.
There are no viable alternative to do this outside of Obsidian.
I want to easily copy a link to a note i'm working on. This allows me to easily reference it.
Copy [[current note name]]
using y
command.
There are no alternatives.
As a user I want something similar to Obsidian Calendar Plugin.
I want to be able to have calendar-like buffer where I can choose arbitrary date and navigate to corresponding daily note (or create one of the note doesn't exist yet).
Searching dates manually.
I have to create templates for PRs and issues.
Issue templates:
PR templates:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.