mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
style: run stylua
This commit is contained in:
@@ -433,11 +433,8 @@ function strwalker:match(s)
|
|||||||
end
|
end
|
||||||
function strwalker:__call(s, f) -- print("strwalker:__call "..s..self:aimchr())
|
function strwalker:__call(s, f) -- print("strwalker:__call "..s..self:aimchr())
|
||||||
local is, ie
|
local is, ie
|
||||||
is, ie, self[1], self[2], self[3], self[4], self[5] = find(
|
is, ie, self[1], self[2], self[3], self[4], self[5] =
|
||||||
self.s,
|
find(self.s, s, self.i)
|
||||||
s,
|
|
||||||
self.i
|
|
||||||
)
|
|
||||||
if is then
|
if is then
|
||||||
self.e, self.i = self.i, 1 + ie
|
self.e, self.i = self.i, 1 + ie
|
||||||
if f then
|
if f then
|
||||||
|
|||||||
@@ -97,12 +97,8 @@ M.generate_backlink_map = function(opts)
|
|||||||
link_counts[note_fn] = link_counts[note_fn] + 1
|
link_counts[note_fn] = link_counts[note_fn] + 1
|
||||||
|
|
||||||
-- and: inc the backlinks of the linked note
|
-- and: inc the backlinks of the linked note
|
||||||
local fexists, backlinked_file = resolve_link(
|
local fexists, backlinked_file =
|
||||||
linktitle,
|
resolve_link(linktitle, file_list, subdir_list, opts)
|
||||||
file_list,
|
|
||||||
subdir_list,
|
|
||||||
opts
|
|
||||||
)
|
|
||||||
-- print(
|
-- print(
|
||||||
-- "note for link `"
|
-- "note for link `"
|
||||||
-- .. linktitle
|
-- .. linktitle
|
||||||
|
|||||||
@@ -146,8 +146,7 @@ M.do_find_all_tags = function(opts)
|
|||||||
local cmd, args = command_find_all_tags(opts)
|
local cmd, args = command_find_all_tags(opts)
|
||||||
--print(cmd .. " " .. vim.inspect(args))
|
--print(cmd .. " " .. vim.inspect(args))
|
||||||
local ret = {}
|
local ret = {}
|
||||||
local _ = Job
|
local _ = Job:new({
|
||||||
:new({
|
|
||||||
command = cmd,
|
command = cmd,
|
||||||
args = args,
|
args = args,
|
||||||
enable_recording = true,
|
enable_recording = true,
|
||||||
@@ -164,8 +163,7 @@ M.do_find_all_tags = function(opts)
|
|||||||
on_stderr = function(err, data, _)
|
on_stderr = function(err, data, _)
|
||||||
print("error: " .. tostring(err) .. "data: " .. data)
|
print("error: " .. tostring(err) .. "data: " .. data)
|
||||||
end,
|
end,
|
||||||
})
|
}):sync()
|
||||||
:sync()
|
|
||||||
-- print("final results: " .. vim.inspect(ret))
|
-- print("final results: " .. vim.inspect(ret))
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -12,7 +12,8 @@ local vaults = function(telekasten, opts)
|
|||||||
for k, v in pairs(vaults) do
|
for k, v in pairs(vaults) do
|
||||||
table.insert(_vaults, { k, v })
|
table.insert(_vaults, { k, v })
|
||||||
end
|
end
|
||||||
pickers.new(opts, {
|
pickers
|
||||||
|
.new(opts, {
|
||||||
prompt_title = "Vaults",
|
prompt_title = "Vaults",
|
||||||
finder = finders.new_table({
|
finder = finders.new_table({
|
||||||
results = _vaults,
|
results = _vaults,
|
||||||
@@ -34,7 +35,8 @@ local vaults = function(telekasten, opts)
|
|||||||
end)
|
end)
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
}):find()
|
})
|
||||||
|
:find()
|
||||||
end
|
end
|
||||||
|
|
||||||
M.vaults = vaults
|
M.vaults = vaults
|
||||||
|
|||||||
Reference in New Issue
Block a user