Skip to content

Commit

Permalink
LMAO
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanamiiiii committed Oct 27, 2024
1 parent 323eda0 commit 1a2e6ff
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 15 deletions.
5 changes: 5 additions & 0 deletions aerospace/aerospace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ tell application "Finder"
activate
end tell'
'''
alt-i = 'exec-and-forget open -a "Neovide"'

alt-q = 'close'

Expand Down Expand Up @@ -128,6 +129,10 @@ run = 'layout floating'
if.app-id = 'com.github.wez.wezterm'
run = 'move-node-to-workspace 1'

[[on-window-detected]]
if.app-id = 'com.neovide.neovide'
run = 'move-node-to-workspace 1'

[[on-window-detected]]
if.app-id = 'company.thebrowser.Browser'
run = 'move-node-to-workspace 2'
Expand Down
80 changes: 65 additions & 15 deletions nvim/lua/plugins/obsidian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ return {
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
ft = "markdown",
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
-- event = {
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
-- -- refer to `:h file-pattern` for more examples
-- "BufReadPre path/to/my-vault/*.md",
-- "BufNewFile path/to/my-vault/*.md",
-- },
event = {
"BufReadPre " .. vim.fn.expand("~") .. "Documents/Nanami Lab/*.md",
"BufNewFile " .. vim.fn.expand("~") .. "Documents/Nanami Lab/*.md",
Expand All @@ -25,12 +17,70 @@ return {
path = "~/Documents/Nanami Lab",
},
},
},
daily_notes = {
folder = "Daily Notes",
date_format = "%Y-%m-%d",
alias_format = "%B %-d, %Y",
default_tags = { "daily-notes" },
template = nil,
preferred_link_style = "wiki",
daily_notes = {
folder = "Daily Notes",
date_format = "%Y-%m-%d",
alias_format = "%B %-d, %Y",
default_tags = { "Daily" },
template = "DailyNotesVim.md",
},
attachments = {
img_folder = "_assets",
---@return string
img_name_func = function()
return string.format("Pasted_%s_", os.time())
end,
---@param client obsidian.Client
---@param path obsidian.Path the absolute path to the image file
---@return string
img_text_func = function(client, path)
path = client:vault_relative_path(path) or path
return string.format("![[%s]]", path.name)
end,
},
templates = {
folder = "_config/Template",
date_format = "%Y-%m-%d",
time_format = "%H:%M:%S",
substitutions = {
---@return string
yesterday = function()
return os.date("%Y-%m-%d", os.time() - 86400)
end,
---@return string
before_week = function()
return os.date("%Y-%m-%d", os.time() - (86400 * 7))
end,
---@return string
tomorrow = function()
return os.date("%Y-%m-%d", os.time() + 86400)
end,
---@return string
after_week = function()
return os.date("%Y-%m-%d", os.time() + (86400 * 7))
end,
---@return string
full_datetime = function()
return os.date("%Y-%m-%dT%H:%M:%S+09:00")
end,
},
},
---@return table
note_frontmatter_func = function(note)
if note.title then
note:add_alias(note.title)
end

local out = { id = note.id, aliases = note.aliases, tags = note.tags }

if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
for k, v in pairs(note.metadata) do
out[k] = v
end
end

return out
end,
},
}

0 comments on commit 1a2e6ff

Please sign in to comment.