Skip to content

Commit

Permalink
refactor!: move all gt* keybinds to <LocalLeader>t*
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Apr 29, 2023
1 parent a112553 commit f67110d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/neorg/modules/core/keybinds/keybinds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@ module.config.public = {
n = {
-- Marks the task under the cursor as "undone"
-- ^mark Task as Undone
{ "gtu", "core.qol.todo_items.todo.task_undone" },
{ leader .. "tu", "core.qol.todo_items.todo.task_undone" },

-- Marks the task under the cursor as "pending"
-- ^mark Task as Pending
{ "gtp", "core.qol.todo_items.todo.task_pending" },
{ leader .. "tp", "core.qol.todo_items.todo.task_pending" },

-- Marks the task under the cursor as "done"
-- ^mark Task as Done
{ "gtd", "core.qol.todo_items.todo.task_done" },
{ leader .. "td", "core.qol.todo_items.todo.task_done" },

-- Marks the task under the cursor as "on_hold"
-- ^mark Task as on Hold
{ "gth", "core.qol.todo_items.todo.task_on_hold" },
{ leader .. "th", "core.qol.todo_items.todo.task_on_hold" },

-- Marks the task under the cursor as "cancelled"
-- ^mark Task as Cancelled
{ "gtc", "core.qol.todo_items.todo.task_cancelled" },
{ leader .. "tc", "core.qol.todo_items.todo.task_cancelled" },

-- Marks the task under the cursor as "recurring"
-- ^mark Task as Recurring
{ "gtr", "core.qol.todo_items.todo.task_recurring" },
{ leader .. "tr", "core.qol.todo_items.todo.task_recurring" },

-- Marks the task under the cursor as "important"
-- ^mark Task as Important
{ "gti", "core.qol.todo_items.todo.task_important" },
{ leader .. "ti", "core.qol.todo_items.todo.task_important" },

-- Switches the task under the cursor between a select few states
{ "<C-Space>", "core.qol.todo_items.todo.task_cycle" },
Expand Down

1 comment on commit f67110d

@viktor-yakubiv
Copy link

@viktor-yakubiv viktor-yakubiv commented on f67110d Feb 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have been watching your From No Org to Neorg course and have found that keybindings do not work. After trying various configurations and going through the source code I have digged down to this commit.

While the phrase get task done (undone, hold, etc.) from the video sounds like idiomatic Vim to me, I am curious why you have changed g to leader for almost all key bindings?


Update

The answer popped up in the third video of the series and is stated as:

Neovim maps gt to switch tabs. When you add an extra key to that, you have to wait for a timeout to actually trigger tab switching. Many users have found it annoying.

Sorry, for asking this. @vhyrro you did incredible work creating Neorg infrastructure. Thank you very much!

Please sign in to comment.