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

Set arg make ObsidianQuickSwitch search order #179

Closed
wants to merge 0 commits into from

Conversation

bigzhu
Copy link
Contributor

@bigzhu bigzhu commented Aug 25, 2023

@bigzhu
Copy link
Contributor Author

bigzhu commented Aug 25, 2023

@epwalsh The conflicts in the CHANGELOG have been resolved

Copy link
Owner

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

Hey @bigzhu, sorry for the slow response.. I was out with COVID for a week.

Having two options called sort_by and order_by seems pretty confusing to me. I recommend we just have a sort_by option and then a sort_reversed (bool) option.

CHANGELOG.md Outdated Show resolved Hide resolved
doc/obsidian.txt Outdated Show resolved Hide resolved
@bigzhu bigzhu requested a review from epwalsh September 19, 2023 07:53
@bigzhu
Copy link
Contributor Author

bigzhu commented Sep 19, 2023

Oh, @epwalsh I didn't notice your reply.
I submitted the request again.
Ps: my NeoVim auto formated README.md.

Copy link
Owner

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

Hey @bigzhu, thanks for those changes. I just have a couple more requests.

@@ -385,7 +405,8 @@ command.quick_switch = function(client, data)
util.implementation_unavailable()
end
-- Search with telescope.nvim
telescope.find_files { cwd = dir, search_file = "*.md" }
local opts = attach_find_command(client, { cwd = dir, search_file = "*.md" })
Copy link
Owner

Choose a reason for hiding this comment

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

We should support fzf.vim and fzf-lua too.

if sort_reversed == false then
sort = "sort"
end
opts.find_command = { "rg", "--files", "--" .. sort, sort_by }
Copy link
Owner

Choose a reason for hiding this comment

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

We should start with util.FIND_CMD command and the --sort/--sortr options to that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

find_command is the telescope.find_files parameter, I don't understand it has any business with util.FIND_CMD

@epwalsh
Copy link
Owner

epwalsh commented Sep 21, 2023

I tried to push a commit to your branch and GitHub automatically closed this PR. Not sure what's going on.

@epwalsh
Copy link
Owner

epwalsh commented Sep 21, 2023

Had to create a new PR here: #200

@bigzhu
Copy link
Contributor Author

bigzhu commented Sep 25, 2023

No problem, don't mind

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.

2 participants