Skip to content

Commit

Permalink
Add FAQ "Can you use the language file icons in the Quickpick instead
Browse files Browse the repository at this point in the history
of the generic file or folder icon?"
  • Loading branch information
robole committed Jul 15, 2022
1 parent 23dd2e3 commit 188c9fa
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project are documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/-0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.0] - 2022-07-15

- Added FAQ #4 to README.md.

## [1.2.2] - 2022-06-29

- Update GitHub Action should use latest major version (v1).
Expand Down
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,13 @@ The extension is loaded once VS Code has fully loaded. To be more specific, it i

If you have a suggestion or find a bug, please file an issue.

My time is limited, so adding features is unlikely. I use this extension, so it works, for sure!

**If you want to support me to dedicate more time to this or other projets, you can [become a supporter](https://ko-fi.com/roboleary).**

If you want to contribute to the development, please discuss it with me first! I do not know if I would have time to perform a code review.
If you want to contribute to the development, please discuss it with me first! I do not know when I would have time to perform a code review!

## Gratitude

If you are happy with the extension, please star the repo, and leave a review to help others find it. 🌟
You can [buy me a coffee or become a supporter](https://ko-fi.com/roboleary) to support my work.

You can [buy me a coffee or become a supporter](https://ko-fi.com/roboleary).
If you are happy with the extension, please star the repo, and leave a review to help others find it. 🌟

## Frequently Asked Questions (FAQ)

Expand All @@ -187,3 +183,11 @@ These are hidden system folders such as the recycle bin. You don't see these in
The reason this extension shows them is because it uses [node glob](https://www.npmjs.com/package/glob) under the hood, and glob dutifully reports these back as folders. If you open them, you can't do anything with them because of permissions.

This is not something I can turn off, it is just a quirk with Windows and glob. If it bothers you, add the specific folders to the `Filebunny: Excludes` setting, so that you won't see them in future.

### 4) Can you use the language file icons in the Quickpick instead of the generic file or folder icon?

Currently, it is only possible to use [product icons](https://code.visualstudio.com/api/references/icons-in-labels) in the label of a [QuickPickItem](https://code.visualstudio.com/api/references/vscode-api#QuickPickItem).

Product icons are the built-in icons that are used throughout the editor. The product icons that ship with VS Code are contained in the [Codicon icon font](https://github.com/microsoft/vscode-codicons) and form the default product icon theme. I use the *file*, *symbolic link*, and *folder* icons from this font in the labels.

There is an [open issue for adding support for file icons to the QuickPick API](https://github.com/microsoft/vscode/issues/59826). File icons are used next to file names in the UI, and are defined in a [file icon theme](https://code.visualstudio.com/api/extension-guides/file-icon-theme).
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"description": "Perform file actions quickly with keyboard-driven file selection. 🐰⌨️",
"icon": "img/logo.png",
"version": "1.2.2",
"version": "1.3.0",
"engines": {
"vscode": "^1.46.0",
"node": ">=12"
Expand Down
30 changes: 11 additions & 19 deletions todo.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,31 @@
<!-- markdownlint-disable-file -->
# To Do

This is the list of commands and keybindings for related bits:

- [file management](https://code.visualstudio.com/docs/getstarted/keybindings#_file-management).
- [navigation](https://code.visualstudio.com/docs/getstarted/keybindings#_navigation)

- USE *robabc* as PUBLISHER when providing new version of premium edition.

## Tasks

1. Add recent items to top of file list.
1. Publish under `robabc` to give customers access to v1?
1. Add more tests?
1. broot-like commands available on files. Could use `Terminal.sendText`? See https://code.visualstudio.com/api/references/vscode-api#Terminal
1. Use caching to get last location used, rather than using default location configuration option? Review config items related to this.
1. `File Bunny: Copy Active File as Base64`
1. `File Bunny: Open Folder As Template` or `File Bunny: Create New Project from Template`
1. Add multi-root workspace support.
1. Add recent items to top of file list for `File Bunny: Open Folder`.
1. Add more tests (refactor).
1. `File Bunny: New Project from Template`
1. Add multi-root workspace support?

## Long-standing Issues
## Long-standing API issues

- [ ] Cannot delete active file if it is image. No way to reference active editor. Awaiting change from this [open issue](https://github.com/microsoft/vscode/issues/15178).
- Cannot delete active file if it is image. No way to reference active editor. Awaiting change from this [open issue](https://github.com/microsoft/vscode/issues/15178).
- There is an [open issue for adding support for file icons to the QuickPick API](https://github.com/microsoft/vscode/issues/59826).

## Further ideas

1. Use different fuzzy search algo.
1. broot-like commands available on files. Could use `Terminal.sendText`? See <https://code.visualstudio.com/api/references/vscode-api#Terminal>
1. Navigate to your home folder by typing ~ into the search box, or step up to the parent folder by typing ..
1. Quickly toggle excluded files?
1. Peek files like <https://github.com/abierbaum/vscode-file-peek>
1. Batch actions required?
1. Allow automatic creation of a folder?
1. Use brace expansion <https://www.npmjs.com/package/brace-expansion> ?
1. `File Bunny: Copy Active File as Base64`

## Performance

- Only async methods are used for IO operations. These are [2.3X faster than their sync counterparts](https://jinoantony.com/blog/async-vs-sync-nodejs-a-simple-benchmark).
- Only async methods are used for IO operations. These are [2.3X faster than their sync counterparts](https://jinoantony.com/blog/async-vs-sync-nodejs-a-simple-benchmark).
- Use caching for calls for Browser's reading of folder.
- [Modern mode](https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode) is used when reading directories, which is 2X faster. The `stats` option is disabled. An additional call for symbolic links (`fs.stat`) is still present.

0 comments on commit 188c9fa

Please sign in to comment.