ONE-vscode icon indicating copy to clipboard operation
ONE-vscode copied to clipboard

[OneExplorer] Keep selected files in default explorer view

Open dayo09 opened this issue 2 years ago • 3 comments

What?

Let's keep selected file while moving from one explorer view to default explorer view. So the user can just select any file and locate it under default file explorer view.

Why?

Basically, One Explorer is a view which helps users to use onecc easily. It's not a file explorer. User may want to look at the file's location in the file explorer view. Let's support users to switch between OneExplorer and default vscode explorer while keeping the file selection.

POINT1 If any file is opened, it's selected in default explorer view, automatically.

For example, there are some files that are supported to open in a view : *.log. Those files are kept in its selection while user moves to vscode explorer. In other word, if OneExplorer supports editors(openViewTypes) for all the files it supports, the feature will be automatically supported, too.

POINT2

The feature : "Get selected file/folder in the explorer view" seems not being officially support yet

https://github.com/microsoft/vscode/issues/3553

dayo09 avatar Aug 02 '22 08:08 dayo09

@lemmaa FYI, from the short research, it seems not to be possible to "select a file from One Explorer and show in default explorer". Vscode's api doesn't support it.

By workaround, we can make it to 'open every file' in editors. If it's kept opened in any editor, default explorer can 'select' it automatically. But I doubt that's the one you look for. :cry: Because it will open 'editor not supported' files.

dayo09 avatar Aug 23 '22 12:08 dayo09

Let's support users to switch between OneExplorer and default vscode explorer while keeping the file selection.

Oh, I think your idea is cool. If all the files we deal with have an appropriate editor, it will be a natural and useful experience.

Regarding the display of selected files on the Explorer View, I was just expecting the "Reveal in Explorer View" function of the file tab to be added to the context menu of ONE Explorer. This is probably not a problem with the current implementation. :)

lemmaa avatar Aug 24 '22 04:08 lemmaa

@lemmaa

For sure. 😄 "Reveal in Explorer View" command is implemented in #1234.

dayo09 avatar Aug 24 '22 07:08 dayo09