2022-05-07 21:31:19 +00:00
|
|
|
-- ===========================================================================
|
|
|
|
-- Custom Functions
|
|
|
|
-- ===========================================================================
|
|
|
|
|
|
|
|
grep_notes = function()
|
|
|
|
local opts = {
|
|
|
|
prompt_title = "Search Notes",
|
|
|
|
cwd = "$NOTES_PATH",
|
|
|
|
}
|
|
|
|
require("telescope.builtin").live_grep(opts)
|
|
|
|
end
|
|
|
|
|
|
|
|
find_notes = function()
|
|
|
|
local opts = {
|
|
|
|
prompt_title = "Find Notes",
|
|
|
|
cwd = "$NOTES_PATH",
|
|
|
|
}
|
|
|
|
require("telescope.builtin").find_files(opts)
|
|
|
|
end
|
|
|
|
|
|
|
|
find_downloads = function()
|
|
|
|
local opts = {
|
|
|
|
prompt_title = "Find Downloads",
|
2022-05-09 00:49:42 +00:00
|
|
|
cwd = "~/downloads",
|
2022-05-07 21:31:19 +00:00
|
|
|
}
|
|
|
|
require("telescope").extensions.file_browser.file_browser(opts)
|
|
|
|
end
|
|
|
|
|
|
|
|
command_history = function()
|
|
|
|
local opts = require("telescope.themes").get_ivy({
|
|
|
|
layout_config = {
|
|
|
|
bottom_pane = {
|
|
|
|
height = 15,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
require("telescope.builtin").command_history(opts)
|
|
|
|
end
|