A shortcut to select file/files in the explorer. And copy that path to the terminal.
#16.965 aperta il 28 mar 2024
Metriche repository
- Star
- (35.764 star)
- Metriche merge PR
- (Merge medio 27g 19h) (24 PR mergiate in 30 g)
Descrizione
Description of the new feature/enhancement
I would love to have an shortcut that opens an dialog to select files. And then just copy the paths of those files to the terminal. So i can be a bit quicker and don't have to be sliding the terminal/file explorer around to make sure i can slide the files in without losing focus of the terminal.
Have you ever found it cumbersome to input file paths into the terminal? I often find myself opening a file explorer, selecting the files I need, and then dragging them into the terminal. However, this process can be a bit of a hassle, especially when juggling between different application windows. And have to make sure both stay in view.
Proposed technical implementation details (optional)
I have a implementation. There is also code for WSL support. I am however missing a accessible function to check if it is in WSL. So that should be worked on. Could be me if i am pushed in the right direction.
The implementation is in this fork. https://github.com/Raukie/Terminal So let me know with what steps to proceed, to make this happen.
The result should be
A shortcut, my own preference would be ctrl+o, o stands for open. When in the terminal and pressing that shorcut a file explorer dialog should open to select files. After you have selected the files the path of the selected files should be pasted into the terminal.
Example video of what to happen.
https://github.com/microsoft/terminal/assets/90243019/c4fce082-27f9-48d8-ac63-56a1ad5eb469