From 0ab3664becb415d038448a6c9318657bea1f8efc Mon Sep 17 00:00:00 2001 From: jimrothstein Date: Sun, 19 Nov 2023 20:21:02 -0800 Subject: [PATCH] wip --- lua/jim/keymaps.lua | 32 ++++++++++++++++++++++---------- skeleton/skeleton.qmd | 2 +- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/lua/jim/keymaps.lua b/lua/jim/keymaps.lua index 9a786ebc..64562c45 100644 --- a/lua/jim/keymaps.lua +++ b/lua/jim/keymaps.lua @@ -45,6 +45,16 @@ vim.keymap.set("n", "dd", function() end, { expr = true }) + +local telescope_home = function() + require('telescope.builtin').find_files({ cwd = "/home/jim", hidden = true }) +end + +-- telescope - fails +-- vim.keymap.set('n', ' fz', function() builtin.find_files({ cwd = '/home/jim/' }) end, {}) +vim.keymap.set('n', 'fz', telescope_home, { desc = 'Telescope file_files in home directory' }) + + -- vim.keymap.set( {'n', ']nc', -- Remap for dealing with word wrap -- jr 2023-10-07 Not cause of sticky line @@ -104,12 +114,19 @@ local mappings = { g = { name = "temp file", -- checkhealth, gb, gc are conflicts - f = { "Telescope find_files", "Find File" }, -- create a binding with label - g = { "Telescope live_grep", "Full Text Search" }, - -- gb taken by comments plugin - bu = { "Telescope buffers", "Telescope [Bu]ffers" }, q = { "q", 'Quit - no warn' }, }, + f = { + name = "find things & Telescope", + f = { "Telescope find_files", "Telescope | Find File" }, -- create a binding with label + g = { "Telescope live_grep", "Telescope | Full Text Search" }, + b = { "Telescope buffers", "Telescope [B]uffers" }, + -- tz is conflict + -- fails + -- + -- z = { "Telescope find_files", "Find File", desc = "Search Home", { cwd = '/home/jim' } }, -- create a binding with label + -- gb taken by comments plugin + }, n = { name = "my notes", a = { "cd ~/code/docs/ALZ/", "cd [A]LZ [Notes]" }, @@ -127,10 +144,7 @@ local mappings = { x = { "RStop", "interrupt R, RStop" }, }, t = { - name = "telescope", - f = { "Telescope find_files", "Find File" }, -- create a binding with label - -- tz is conflict - -- z = { "Telescope find_files", "Find File", desc = "Search Home", pwd = '/home/jim' }, -- create a binding with label + name = "not in use", }, q = { ":q", "Quit - no warn" }, @@ -143,8 +157,6 @@ local mappings = { rk = { ':RKill', 'RKill , but not guaranteed to close terminal' }, -- use ck E = { ':e ~/.config/kickstart/init.lua', 'Edit KICKSTART config' }, ck = { ':e ~/.config/kickstart/init.lua', '[ck] Edit KICKSTART config' }, - -- f = { ":Telescope find_files", "Telescope Find Files" }, - -- r = { ":Telescope live_grep", "Telescope Live Grep" }, } local opts = { prefix = '' } diff --git a/skeleton/skeleton.qmd b/skeleton/skeleton.qmd index 57e589e1..841821f8 100644 --- a/skeleton/skeleton.qmd +++ b/skeleton/skeleton.qmd @@ -1,5 +1,5 @@ --- -title: Loose Leaf +title: skeleton.qmd date: last-modified # Quarto requires title, if want date to appear ---