atom-community / atom-community/terminal

Terminal opens with path of first project in tree view

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Prerequisites

* [ x ] Put an X between the brackets on this line if you have done all of the following:
* Reproduced the problem in Safe Mode:
* Followed all applicable steps in the debugging guide:
* Checked the FAQs on the message board for common solutions:
* Checked that your issue isn't already filed:
* Checked that there is not already an Atom package that provides the described functionality:

### Description

When the tree view is active and you open a new terminal, the path opened matches the first project folder in the tree view. This is different to the behavior when the editor is active and unexpected.

### Steps to Reproduce

1. Open tree view and add multiple project folders
2. Select a project that is not the first project
3. Run atomic-terminal:open

**Expected behavior:**

The current path in terminal should match the path of the selected project

**Actual behavior:**

The current path in terminal matches the path of the first project

**Reproduces how often:**

100%

### Versions

1.60.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with multiple project folders in the tree view, select a non-first project, and run the atomic-terminal:open entry point. Trace how that command chooses the terminal path when the tree view is active. Done means the terminal opens in the selected project's path rather than the first project's path, while preserving the existing editor behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.