robole / vscode-file-bunny

Perform file actions quickly with keyboard-driven file selection. 🐰

Home Page:https://marketplace.visualstudio.com/items?itemName=robole.file-bunny

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tab completion not working on "File Bunny: Open File"

aguynamedben opened this issue · comments

Hi, this package looks great and has a good philosophy. Thank you for publishing and maintaining it.

For me, the tab completion is working on the "File Bunny: Open Folder" command but not on the "File Bunny: Open File" command. This is surprising to me as I'm more interested in opening files with this package than folders.

To Reproduce

  • Install VS Code 1.89.1
  • Run VS Code from command line with code --extensions-dir=~/tmp/vs3-ext --user-data-dir ~/tmp/vs3
  • Install File Bunny 2.2.0
  • Open folder ~/code/ocoder using File > Open (traditional method)
  • Hit Cmd-Shift-P to open Command Palette and run the command "File Bunny: Open File"
  • We'll try to find src/index.ts. Type "sr"
    image
  • Hit Tab to attempt completion to src/
  • Expected: src/ is completed and I can keep typing to further narrow my search.
  • Actual: The command pallet is de-focused. I'm not sure where my focus goes.

Video with explanation - https://app.screencast.com/RB0ymGo6zKdib

Apple M1 Pro
macOS Sonom 14.2.1
VS Code 1.89.1
File Bunny 2.2.0

hi @aguynamedben ,

Thanks for your interest in the extension.

The short answer is that the behavior is as intended for the File Bunny: Open File command.

All of the commands related to files are scoped to the current workspace, see README - Commands (File Actions). When you run File Bunny: Open File, the list presented is a consolidated list of the path of every file in your current workspace. This is because I find that the majority of the time (for me 99% of the time) you are performing actions on files in your current workspace. There is no autocompletion of a subpath. Once you find the path you want from the list, you hit the Enter key to open it.

The File Bunny: Open Folder command has a different paradigm. It is open search throughout the filesystem. You are building a filepath incrementally. The intial list of folders presented is scoped to an initial working directory. You can walk through the file system. Hitting the Tab key selects the currently highlighted option as the choice for making that folder the current working directory. Once you find the folder you want to open, you hit the Enter key to open that folder as a workspace.

If have a suggestion to make the README clearer, let me know. Perhaps, I could make Tab close the dropdown for file actions to make it clear that you are tabbing away. What do you think?

If you are interested in a command to open any file from the file system , you can raise a feature request. I think this is what you were expecting.

Best wishes,

Rob