retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.02k stars 201 forks source link

Editor should use more common text processor shortcuts. #572

Open KruseCtrl opened 1 year ago

KruseCtrl commented 1 year ago

While editing with the edit button while retype watch is running, I often find myself trying to use Ctrl + <- to try and skip back over a whole word to quickly move my cursor without touching the mouse. Lots of text editors (like for example the github issue text editor) have this as a feature.
While this isn't a bug, this would be a very useful quality of life feature to have and make writing feel more easy.

Some of the shortcuts that I've seen missing that I would like are: Ctrl + <- Ctrl + -> Ctrl + delete Ctrl + shift + <- Ctrl + shift + -> Ctrl + LMB (allows placing multiple cursors to edit multiple places at once)

geoffreymcgill commented 1 year ago

These shortcuts all seem to work as expected on macos. The shortcuts function the same in the Retype live editor in a web browsers and editing the file in Visual Studio Code. I also don't see any difference between the GitHub Issue editor. At the moment, I don't have access to a Windows machine to test.

KruseCtrl commented 1 year ago

Oh I'm sorry, I forgot that it might act differently on different platforms.

My platform details are: Mozilla Firefox for Fedora 106.0.4 (64-bit) Fedora 36

geoffreymcgill commented 1 year ago

Editing multiple instances of the same word does not appear to work the same when in the Retype live editor as it does in Visual Studio Code. In VS Code, you can highlight a word, then use Command + D or Command + Shift + L to select and edit other instances of that same string.

This keyboard feature is likely just not set to be enabled in the monaco-editor component instance that we are using within the Retype live editor mode. We will look into enabling.