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

Tab disabled by PSFzf? #12

Closed
Praful opened this issue Aug 25, 2017 · 7 comments
Closed

Tab disabled by PSFzf? #12

Praful opened this issue Aug 25, 2017 · 7 comments

Comments

@Praful
Copy link

Praful commented Aug 25, 2017

Hello

I've enabled PSFzf with the commands:

Remove-PSReadlineKeyHandler 'CTRL+R'
Import-Module PSFzf

This all works. However, when I'm in PowerShell, the tab key does nothing!

If I use

Import-Module PSFzf -ArgumentList 'Ctrl+T','Ctrl+R', 'Tab'

Then I get fzf invoked when I press tab.

How do I get the default tab behaviour whilst using PSfzf. Note tab works fine when using just PSReadline and fzf.

I'm using Windows 10 Creators Update with PowerShell 5.1.

Thanks
Praful

@kelleyma49
Copy link
Owner

Sorry for the delayed response. I haven't been able to recreate this issue. can you copy and paste your $error output like this:

PS> $error

@Praful
Copy link
Author

Praful commented Sep 18, 2017

Hello

If I open a new PowerShell console after setting

Remove-PSReadlineKeyHandler 'CTRL+R'
Import-Module PSFzf

and typing PS> $error, the following appears:

FindPathsInLastCommand : The term 'FindPathsInLastCommand' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:6 char:3
+         FindPathsInLastCommand
+         ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (FindPathsInLastCommand:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

I searched this error and saw a reference to another module by you, Fasdr. I installed this and am getting the above error.

@Praful
Copy link
Author

Praful commented Oct 2, 2017

Hello

I looked a bit further into this whilst learning PowerShell.

If I don't load PSFzf but load Fasdr, I get the same issue ie pressing tab does not autocomplete the command/file/directory. So the issue seems to be Fasdr rather than PSFzf.

For now, I have this in my $profile:

Remove-PSReadlineKeyHandler 'CTRL+R'
Import-Module PSFzf
# BUG: this prevents autocompletion working. Remove for now
Remove-Module Fasdr

Obviously, this results in not having Fasdr functionality but the other features of PSFzf are worth having!

The $error command returns nothing.

HTH
Praful

@Konfekt
Copy link

Konfekt commented Sep 7, 2021

Is this issue still open? It seems that the latest version PSFzf does not load Fasdr by default anymore as there is no Set-Frecent command availabe after loading PSFzf.

@Konfekt
Copy link

Konfekt commented Sep 7, 2021

See also kelleyma49/fasdr#21

@kelleyma49
Copy link
Owner

I introduced a breaking change in order to improve startup PSFzf startup times. See this link for more information: #23 (comment)

@Konfekt
Copy link

Konfekt commented Sep 8, 2021

Thank you. This issue could then be closed, lest someone fear problems that no longer exist.

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

No branches or pull requests

3 participants