posit-dev / posit-dev/positron

Console pane context menu copy only works in the history - Windows

Open
#2,280 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: console bug os-windows
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

Positron Version:

Positron Version: 2024.02.0 (system setup) build 2024.02.0-1535
Code - OSS Version: 1.86.0
Commit: 1478e597a716c434509a1ff8f7e0e43dbf420cb2
Date: 2024-02-15T02:51:08.089Z
Electron: 27.2.3
ElectronBuildId: undefined
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.22631

Steps to reproduce the issue:

  1. Type a few commands into the console (Python or R)
  2. Select some text from a previous command or result
  3. Right click to bring up context menu
    Copy is available
image
  1. Start typing a new command (but don't press enter)
  2. Select some text of the new command on the input line
  3. Right click and bring up context menu
    Copy is not available
image

What did you expect to happen?

Copy to be available where selecting text

Notes

This appears to be Windows only.. it works as expected on MacOS
Behavior is same for Python and R
Follow-on to #123

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 at the console pane's context-menu handling and reproduce the steps on Windows with a fresh command selection, comparing it with a selection from history. Done means the Copy action is available for selected text on the input line for both Python and R consoles, as it is on macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, python, r, typescript
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.