add keymappings
This commit is contained in:
parent
17f45981ed
commit
0745f9b329
@ -4,7 +4,7 @@ local M = {}
|
||||
|
||||
function M.search_markdown_tasks()
|
||||
telescope.grep_string({
|
||||
prompt_title = "Markdown Tasks",
|
||||
prompt_title = "Open Task List",
|
||||
search = "- [ ]", -- Customize if needed for specific task markers
|
||||
cwd = vim.fn.expand('%:p:h') -- Current file's directory
|
||||
})
|
||||
|
@ -13,6 +13,10 @@ map("i", "jk", "<ESC>")
|
||||
|
||||
-- Add a keybinding for searching Markdown tasks
|
||||
vim.api.nvim_set_keymap('n', '<leader>mt', ':lua require("custom_telescope").search_markdown_tasks()<CR>', { noremap = true, silent = true })
|
||||
-- Add a keybinding for calling ObsidianTag
|
||||
vim.api.nvim_set_keymap('n', '<leader>tt', ':ObsidianTag<CR>', { noremap = true, silent = true })
|
||||
-- Add a keybinding for calling ObsidianBacklinks
|
||||
vim.api.nvim_set_keymap('n', '<leader>lb', ':ObsidianBacklinks<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Configure Telescope to scroll files with ctrl+j/k
|
||||
local actions = require('telescope.actions')
|
||||
|
Loading…
Reference in New Issue
Block a user