Add behavior for Ctrl + D to activity prompt
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start by locating the activity-prompt handler and its existing Escape behavior, using #2046 as context. Compare the desired Ctrl+D behavior with the IPython description in this issue, and determine whether console-prompt handling is in scope. Done means the agreed Ctrl+D behavior works in the activity prompt and the relevant behavior is verified.
Written by the indexing model from the issue text.
Description
In #2046, we made the handling for Escape more consistent between the activity prompt and console prompt, and #1230 is tracking how we can improve the situation for Ctrl+C. However, we currently don't have any handling at all for Ctrl+D. In RStudio, this behaves the same as Enter in an activity prompt i.e. prompts for input again like "Enter an item from the menu, or 0 to exit", much as @seeM describes the IPython behavior:
Ctrl+d:
- In an ordinary
pythonREPL and inpdbandipdb, it exits without confirmation if the input is empty (otherwise does nothing).- In an
IPythonREPL, it asks for confirmation if the input is empty (otherwise does nothing), and the user can either reply withy+Enteror anotherCtrl+d.I don't think too many people use ordinary Python REPLs (I might be wrong) so I would lean toward
IPythonwhere they deviate.
Originally posted by @seeM in https://github.com/posit-dev/positron/issues/1148#issuecomment-1887012916
I'm less sure what we might want Ctrl+D to do in the console prompt; RStudio doesn't do anything there.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/positron
-
ci-cd lang: python
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
area: quarto lang: r
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area: quarto lang: r
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
area: onboarding area: welcome enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
area: assistant bug support
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in posit-dev/positron
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·