microsoft / microsoft/terminal

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

Open
#16,965 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-UserInterface Help Wanted In-PR Issue-Task Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the proposed implementation in the linked Raukie/Terminal fork, then trace the terminal shortcut entry point, file-selection dialog, path insertion, and WSL support mentioned in the issue. Done means a shortcut opens multi-file selection and pastes the selected paths into the terminal, with accessible WSL detection if required.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.