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

WIP: Use FZF backend instead #31

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

chardskarth
Copy link

Regardng #23, I haven't thought of a way to support FZF and ended up using fzf as the backend instead.

@chardskarth chardskarth changed the title Use FZF backend instead WIP: Use FZF backend instead Mar 31, 2022
@mingsu
Copy link

mingsu commented Dec 4, 2022

@chardskarth Thanks for your work, I want to try your branch, can you tell me how install your branch, before merge it into the main.

Thanks.

@chardskarth
Copy link
Author

@mingsu hi there! I don't recommend merging this to main. I took a very different approach.

Feel free to try my branch. Go ahead and clone and do a "make install" there. You should be able to build it.

@mingsu
Copy link

mingsu commented Dec 5, 2022

@mingsu hi there! I don't recommend merging this to main. I took a very different approach.

Feel free to try my branch. Go ahead and clone and do a "make install" there. You should be able to build it.

Thanks for your reply. I tried to build it, without success. Can you provide a binary so that I can try?

@justgook
Copy link

justgook commented Dec 6, 2022

for me worked just by calling make and everything builds successfully

but works not really like fzf: (all commands call from root of this repo)
ls | fzf - and type "rm"
image

ls | choose - and type "rm"
image

for me, it looks like if there is no 100% (sequence of letters, then we got nothing)
Example that works:

image

[task setLaunchPath:@"/bin/zsh"];

NSArray *arguments = [NSArray arrayWithObjects: @"-c",
[NSString stringWithFormat:@"echo \"%@\" | fzf --reverse --exact --filter \"%@\"", options, query], nil];
Copy link

Choose a reason for hiding this comment

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

remove please --exact that is what I mention in comment
#31 (comment)

or even better make that string as option that can be passed to application during execution (with default fallback) - that way each user can customize in any way

@chardskarth
Copy link
Author

Hi @justgook thanks for the review 🙏

but I won't be working on this (at least not anytime soon). It works for my use case.

Feel free to fork and remove "--exact" option.. or even better, you can add changes in this MR.
Thanks again!

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.

3 participants