Skip to content

Commit aa13bc9

Browse files
committed
feat!: rename TdoPending to TdoTodos
1 parent b735642 commit aa13bc9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Add the following to your lazy/packer config
5656
{
5757
'2kabhishek/tdo.nvim',
5858
dependencies = 'nvim-telescope/telescope.nvim',
59-
cmd = { 'Tdo', 'TdoEntry', 'TdoNote', 'TdoPending', 'TdoToggle', 'TdoFind', 'TdoFiles' },
59+
cmd = { 'Tdo', 'TdoEntry', 'TdoNote', 'TdoTodos', 'TdoToggle', 'TdoFind', 'TdoFiles' },
6060
keys = { '[t', ']t' },
6161
},
6262

@@ -73,7 +73,7 @@ Add the following to your lazy/packer config
7373
- `Tdo <args>`: open today's todo when no `args`, accepts `args` same as [tdo](https://github.com/2kabhishek/tdo?tab=readme-ov-file#-usage)
7474
- `TdoEntry <offset>`: open today's journal entry, accepts `offset`
7575
- `TdoNote`: create new note with title, if left empty creates a draft with current timestamp
76-
- `TdoPending`: show all your pending todos
76+
- `TdoTodos`: show all your incomplete todos
7777
- `TdoToggle`: toggle todo state
7878
- `TdoFind <text>`: interactively search for `text` in all your notes
7979
- `TdoFiles`: review all your notes
@@ -105,7 +105,7 @@ I have defined commands for yesterday/tomorrow's todos, commit note and timestam
105105
l = { '<cmd>Tdo 1<cr>', "Tomorrow's Todo" },
106106
n = { '<cmd>TdoNote<cr>', 'New Note' },
107107
s = { '<cmd>lua require("tdo").run_with("commit " .. vim.fn.expand("%:p")) vim.notify("Commited!")<cr>', 'Commit Note', },
108-
t = { '<cmd>TdoPending<cr>', 'Pending Todos' },
108+
t = { '<cmd>TdoTodos<cr>', 'Incomplete Todos' },
109109
x = { '<cmd>TdoToggle<cr>', 'Toggle Todo' },
110110
},
111111
```

doc/tdo.nvim.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Add the following to your lazy/packer config
3434
{
3535
'2kabhishek/tdo.nvim',
3636
dependencies = 'nvim-telescope/telescope.nvim',
37-
cmd = { 'Tdo', 'TdoEntry', 'TdoNote', 'TdoPending', 'TdoToggle', 'TdoFind', 'TdoFiles' },
37+
cmd = { 'Tdo', 'TdoEntry', 'TdoNote', 'TdoTodos', 'TdoToggle', 'TdoFind', 'TdoFiles' },
3838
keys = { '[t', ']t' },
3939
},
4040

@@ -50,7 +50,7 @@ COMMANDS *tdo-commands*
5050
- `Tdo <args>`: open today's todo when no `args`, accepts `args` same as [tdo](https://github.com/2kabhishek/tdo?tab=readme-ov-file#-usage)
5151
- `TdoEntry <offset>`: open today's journal entry, accepts `offset`
5252
- `TdoNote`: create new note with title, if left empty creates a draft with current timestamp
53-
- `TdoPending`: show all your pending todos
53+
- `TdoTodos`: show all your incomplete todos
5454
- `TdoToggle`: toggle todo state
5555
- `TdoFind <text>`: interactively search for `text` in all your notes
5656
- `TdoFiles`: review all your notes
@@ -81,7 +81,7 @@ I have defined commands for yesterday/tomorrow's todos, commit note and timestam
8181
k = { "<cmd>put =strftime('%r')<cr>", 'Insert Human Time' },
8282
K = { "<cmd>put =strftime('%F-%H-%M')<cr>", 'Insert Time' },
8383
l = { '<cmd>Tdo 1<cr>', "Tomorrow's Todo" },
84-
t = { '<cmd>TdoPending<cr>', 'Pending Todos' },
84+
t = { '<cmd>TdoTodos<cr>', 'Incomplete Todos' },
8585
n = { '<cmd>TdoNote<cr>', 'New Note' },
8686
s = { '<cmd>lua require("tdo").run_with("commit " .. vim.fn.expand("%:p")) vim.notify("Commited!")<cr>', 'Commit Note', },
8787
x = { '<cmd>TdoToggle<cr>', 'Toggle Todo' },

lua/tdo/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ tdo.pending_todos = function()
2929
local results = vim.fn.systemlist('tdo todo')
3030

3131
require('telescope.pickers').new({}, {
32-
prompt_title = 'Find in todos',
33-
results_title = 'Pending Todos',
32+
prompt_title = 'Find in Todos',
33+
results_title = 'Incomplete Todos',
3434
finder = require('telescope.finders').new_table({
3535
results = results,
3636
entry_maker = require('telescope.make_entry').gen_from_file(),

plugin/tdo.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ vim.api.nvim_create_user_command('TdoEntry', function(input)
1313
end, { nargs = '*' })
1414

1515
vim.api.nvim_create_user_command('TdoNote', 'lua require("tdo").new_note()', {})
16-
vim.api.nvim_create_user_command('TdoPending', 'lua require("tdo").pending_todos()', {})
16+
vim.api.nvim_create_user_command('TdoTodos', 'lua require("tdo").pending_todos()', {})
1717
vim.api.nvim_create_user_command('TdoToggle', 'lua require("tdo").toggle_todo()', {})
1818
vim.api.nvim_create_user_command('TdoFind', 'lua require("tdo").find_note()', {})
1919
vim.api.nvim_create_user_command('TdoFiles', 'lua require("tdo").all_notes()', {})

0 commit comments

Comments
 (0)