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

[Partial fix] requires too many keystrokes for the standard use-case #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rbadapanda
Copy link
Contributor

@rbadapanda rbadapanda commented Nov 29, 2020

Fixes #19

  • moved 'open as new file' to action menu.
  • The extension will be loaded as soon as VsCode starts up - feels more responsive.

Fixes bodil#19

  * moved 'open as new file' to action menu.
  * The extension will be loaded after vsCode startsup.
@rbadapanda
Copy link
Contributor Author

rbadapanda commented Nov 29, 2020

Partial fix. IMHO, the important one (at least for me :) ) is fixed.

@rbadapanda rbadapanda changed the title requires too many keystrokes for the standard use-case [Partial fix] requires too many keystrokes for the standard use-case Nov 29, 2020
Comment on lines +95 to +101
// this.current.value = "";

const stat = (await Result.try(vscode.workspace.fs.stat(this.path.uri))).unwrap();
if (stat && this.inActions && (stat.type & FileType.File) === FileType.File) {
const selectedFile = new Path(this.path.uri).pop().unwrap();
this.items = [
action("$(file) Open this file", Action.OpenFile),
action("$(split-horizontal) Open this file to the side", Action.OpenFileBeside),
action("$(edit) Rename this file", Action.RenameFile),
action("$(trash) Delete this file", Action.DeleteFile),
action(`$(new-file) Create file: ${this.current.value}`, Action.NewFile, this.current.value),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found an issue with this code. but am not able to update another CR to this branch. Hence mentioning it here:

Modification:
line#95: Should remain as is. However, I would create a copy of the variable before resetting its value.

line#101: Use the new variable created on line#95

@jeffgran
Copy link

I forked this and pulled in this change (with some more improvements): https://github.com/jeffgran/vscode-quick-file-browser

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.

requires too many keystrokes for the standard use-case
2 participants