microsoft/Terminal

A shortcut to select file/files in the explorer. And copy that path to the terminal.

Open

#16 965 ouverte le 28 mars 2024

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)C++ (3 212 forks)batch import
Area-UserInterfaceHelp WantedIn-PRIssue-TaskProduct-Terminal

Métriques du dépôt

Stars
 (35 764 stars)
Métriques de merge PR
 (Merge moyen 27j 19h) (24 PRs mergées en 30 j)

Description

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

Guide contributeur