comment out disabler thingy

This commit is contained in:
KRLH 2025-08-21 21:25:05 -05:00
parent 8634a6dc79
commit 8e59c4c27d
3 changed files with 28 additions and 1 deletions

View file

@ -1,4 +1,4 @@
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE -- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- AstroCore provides a central place to modify mappings, vim options, autocommands, and more! -- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
-- Configuration documentation can be found with `:h astrocore` -- Configuration documentation can be found with `:h astrocore`
@ -76,6 +76,29 @@ return {
desc = "Close buffer from tabline", desc = "Close buffer from tabline",
}, },
["<leader>nz"] = {
function()
function Scandir(directory)
local i, t, popen = 0, {}, io.popen
local pfile = popen('ls -A "' .. directory .. '"')
for filename in pfile:lines() do
i = i + 1
t[i] = '"' .. filename .. '"'
end
pfile:close()
return t
end
local ZK_DIR = os.getenv "ZK_NOTEBOOK_DIR" or "~/Desktop/notebooks/slipbox"
ZK_DIR = ZK_DIR .. "/.zk/templates"
local Template_List = Scandir(ZK_DIR)
vim.ui.select(
Template_List,
{ prompt = "Template:" },
function(str) vim.cmd("ZkNew {title = vim.fn.input('Title: '), template = " .. str .. "}") end
)
end,
desc = "New zk slip",
},
-- tables with just a `desc` key will be registered with which-key if it's installed -- tables with just a `desc` key will be registered with which-key if it's installed
-- this is useful for naming menus -- this is useful for naming menus
-- ["<Leader>b"] = { desc = "Buffers" }, -- ["<Leader>b"] = { desc = "Buffers" },

4
spell/en.utf-8.add Normal file
View file

@ -0,0 +1,4 @@
slipbox
i've
memphis
we're

BIN
spell/en.utf-8.add.spl Normal file

Binary file not shown.