stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

[RFC]: add support for shift-selection in the REPL

Open Snehil-Shah opened this issue 1 year ago • 2 comments

Description

This RFC proposes adding support for selecting regions of the input using SHIFT+ARROW in the REPL. Julia supports this (attached below).

https://github.com/user-attachments/assets/402c9602-5578-4d51-afed-9a77db194187

Related Issues

Related issues #2647.

Checklist

  • [X] I have read and understood the Code of Conduct.
  • [X] Searched for existing issues and pull requests.
  • [X] The issue name begins with RFC:.

Snehil-Shah avatar Aug 01 '24 12:08 Snehil-Shah

@Snehil-Shah To clarify, this would allow deleting multiple characters at once? What is the use case?

Hmmm...I am not sure about this key-binding. E.g., SHIFT+ARROW in tmux allows for navigating panes. Are there other possible key combinations?

kgryte avatar Aug 02 '24 00:08 kgryte

Julia also has keybindings around selections for copy/paste/cut operations.

And I am not affixed to any key combination for now, but I believe VSCode also has shift+arrow for selection as a keyboard shortcut.

Snehil-Shah avatar Aug 02 '24 02:08 Snehil-Shah