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

Implement proc widget #11

Merged
merged 1 commit into from
Oct 30, 2018
Merged

Conversation

maximbaz
Copy link
Contributor

Fixes #10

I would be already quite happy with a separate widget that I can bind to e.g. Ctrl+P, but if you want to investigate fzy-contextual-completion-widget, please don't hesitate 😉

@@ -69,11 +74,16 @@ function __fzy_cmd
function __fzy_fsel
{
__fzy_cmd file | while read -r item ; do
echo -n "${(q)item}"
echo -n "${(q)item} "
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I sneaked in here another feature that I found useful: now both file and proc widgets print a space after the inserted item, this allows to instantly trigger zsh-fzy and insert one more entry.

Copy link
Owner

Choose a reason for hiding this comment

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

Clever trick, I like it 👍

Copy link
Owner

@aperezdc aperezdc left a comment

Choose a reason for hiding this comment

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

Nice PR! Thanks a lot for contributing it 👍

@@ -69,11 +74,16 @@ function __fzy_cmd
function __fzy_fsel
{
__fzy_cmd file | while read -r item ; do
echo -n "${(q)item}"
echo -n "${(q)item} "
Copy link
Owner

Choose a reason for hiding this comment

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

Clever trick, I like it 👍

@aperezdc aperezdc merged commit 4b4cbc8 into aperezdc:master Oct 30, 2018
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