Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add :Obsidian [subcommand] command #668

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

epwalsh
Copy link
Owner

@epwalsh epwalsh commented Jul 29, 2024

Closes #662.

@epwalsh epwalsh mentioned this pull request Jul 29, 2024
@epwalsh epwalsh marked this pull request as draft July 29, 2024 01:10
Comment on lines +62 to +70
complete = function()
-- TODO: handle completion correctly for the remaining arguments of each subcommand
local command_list = {}
for command_name, _ in pairs(M.commands) do
local command_base_name = util.string_replace(util.to_snake_case(command_name), "obsidian_", "")
table.insert(command_list, command_base_name)
end
return command_list
end,
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO: need to figure this part out for the completing the args to each subcommand correctly. At the moment this will just keep suggesting command names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested commands
1 participant