question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get selected file/folder in the explorer view

See original GitHub issue

It would be nice if it was possible to retrieve the selected file/folder in the explorer view. The use case where I want to use it for is my vscode-yo extension to be able to run the generator in the selected directory. An API for this would be nice.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:100
  • Comments:35 (9 by maintainers)

github_iconTop GitHub Comments

12reactions
ngarg-panwcommented, Apr 14, 2020

I see that support for multi-file select is there in explorer view. In my extension i want to get the paths of all selected files. Right now, even if I select 5 files, i only get path for 1. I am not finding any relevant API. Do we have the API available for the same?

7reactions
smurphy917commented, Jan 16, 2020

Just to add my own use case here–I’m looking to enable users to select multiple files within the explorer, which my extension can then act on. As of right now, this doesn’t appear to be possible without replicating the entire workspace folder structure in a custom TreeView (not even 100% sure it’s possible then). I’d much prefer to just be able to retrieve the current list of selected files/folders on the OOTB explorer view.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to find the selected file or folder in Windows Explorer ...
How to find the selected file or folder in Windows Explorer using C++ - Microsoft Q&A.
Read more >
How To Display Full File Path In File Explorer [Tutorial]
This tutorial will show you how to display the full path of the current open folder in the title bar of File Explorer...
Read more >
How to get files selected in Explorer - Stack Overflow
the way the application is launched is from windows explorer. The user selects a file (or files) and right-clicks on selected file(s) and...
Read more >
How to get selected file(s)/folder(s) from Windows Explorer?
Get a list of files/folders that the user has currently selected in that window. Could someone point me in the right direction please?...
Read more >
Working with the File Explorer in Windows 10 - Georgetown UIS
Tasks available to you might differ depending on what folder you select (e.g., Documents vs Pictures). To display the Ribbon, click on one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found