Skip to content

Commit 695f70d

Browse files
authored
fix: <C-x> not working after command merging (#88)
1 parent 8903d1e commit 695f70d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525

2626
- Enhanced completion menu to correctly display and handle non-English (ex. Korean) file names and tags in link, fixing Unicode encoding issues
2727
- Fixed bug where `ObsidianRename` did not update the note_id if run in current buffer and not remove the old buffer
28+
- Fixed `<C-x>` not working after command merging
2829

2930
## [v3.10.0](https://github.com/obsidian-nvim/obsidian.nvim/releases/tag/v3.10.0) - 2025-04-12
3031

lua/obsidian/client.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,8 @@ end
312312
---@param cmd_name string The name of the command.
313313
---@param cmd_data table|? The payload for the command.
314314
Client.command = function(self, cmd_name, cmd_data)
315-
local commands = require "obsidian.commands"
316-
317-
commands[cmd_name](self, cmd_data)
315+
local command = require("obsidian.commands." .. cmd_name)
316+
command(self, cmd_data)
318317
end
319318

320319
--- Get the default search options.

lua/obsidian/pickers/picker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Picker._note_query_mappings = function(self)
314314
mappings[self.client.opts.picker.note_mappings.new] = {
315315
desc = "new",
316316
callback = function(query)
317-
self.client:command("ObsidianNew", { args = query })
317+
self.client:command("new", { args = query })
318318
end,
319319
}
320320
end

0 commit comments

Comments
 (0)