Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
53804fb
removed forked readme
Aug 29, 2024
9012536
fixed file extention parsing
Aug 29, 2024
dc7e750
fixed extention table
Aug 29, 2024
d8159d5
checking a bug with inserting twice
Aug 29, 2024
21a7fb0
fixed nil pointer exception when generating template
Aug 29, 2024
0dbd587
edit
Dec 20, 2024
d796a9b
testing
Dec 20, 2024
ed8435d
testing
Dec 20, 2024
9e62d12
testing
Dec 20, 2024
d35169d
testing
Dec 20, 2024
fe4e964
got all files
Dec 20, 2024
09df944
testing
Dec 20, 2024
3c9ddd3
testing
Dec 20, 2024
11969e3
testing
Dec 20, 2024
52fb37a
testing
Dec 20, 2024
22d9286
testing
Dec 20, 2024
e14dfc7
testing
Dec 20, 2024
29f44c7
testing
Dec 20, 2024
9623be9
testing
Dec 20, 2024
998a142
testing
Dec 20, 2024
94484de
fixed ext read
Dec 20, 2024
0d90b4a
fix selection
Dec 20, 2024
8e6f2fe
added logging for debug
Dec 20, 2024
11aaa22
added logging for debug
Dec 20, 2024
39d6e53
trying smth
Dec 20, 2024
0e9af1b
fix nil concat
Dec 20, 2024
a96c324
added .tpl support back
Dec 20, 2024
434cb8a
test
Dec 20, 2024
52b0739
fixed tpl table error
Dec 20, 2024
32f6b32
forgot lua 1 index
Dec 20, 2024
b862427
finished templates and removed debug notifs
Dec 20, 2024
cb6f6db
first draft of new template command
Dec 20, 2024
d02c4b5
fix new command
Dec 20, 2024
eeacffa
fix new command
Dec 20, 2024
5437411
trying to fix concat
Dec 20, 2024
1dd9f20
trying to fix concat
Dec 20, 2024
5b1fb7a
trying to fix concat
Dec 20, 2024
3b91525
trying to fix concat
Dec 20, 2024
8c06e77
check arg type
Dec 20, 2024
a0869e1
forgot end
Dec 20, 2024
e681b5d
finished :TemplateCreate and fixed crashing on no template selected i…
Dec 20, 2024
a06bfbe
updated check
Dec 20, 2024
e9d94e2
updated error msgs
Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

202 changes: 0 additions & 202 deletions README.md

This file was deleted.

6 changes: 5 additions & 1 deletion lua/telescope/_extensions/find_template.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ local find_template = function(opts)
if vim.fn.filereadable(file) == 0 then
local ok, fd = pcall(vim.loop.fs_open, file, 'w', 420)
if not ok then
vim.notify("Couldn't create file " .. file)
vim.notify("[Templates] Couldn't create file " .. file)
return
end
vim.loop.fs_close(fd)
Expand Down Expand Up @@ -62,6 +62,10 @@ local find_template = function(opts)
actions.select_default:replace(function()
actions.close(prompt_bufnr)
local selection = action_state.get_selected_entry()
if not selection then
vim.notify("[Templates] No file selected")
return false
end
local tmp_name = vim.fn.fnamemodify(selection[1], ':t')
tmp_name = vim.split(tmp_name, '%.', { trimempty = true })[1]

Expand Down
Loading