typedb / typedb-studio

TypeDB Studio (IDE)
https://typedb.com
Mozilla Public License 2.0
191 stars 44 forks source link

Shift+Home/End selects to end of line #655

Closed jamesreprise closed 1 year ago

jamesreprise commented 1 year ago

What is the goal of this PR?

Matching the way navigating with the Home & End keys works, adding the shift key should only select to the end of the line rather than the end of the file.

What are the changes implemented in this PR?

SELECT_HOME and SELECT_END only select to the start of the line and the end of the line rather than the start of the file and the end of the file respectively.

Also refactored the names of functions that move the cursor to the start or end of the file to make that fact explicit rather than implicit.

Additional info

Closes https://github.com/vaticle/typedb-studio/issues/555

typedb-bot commented 1 year ago

PR Review Checklist

Do not edit the content of this comment. The PR reviewer should simply update this comment by ticking each review item below, as they get completed.


Code

Architecture