question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistencies between the Home builtin action and the custom "start of line" shortcut action

See original GitHub issue

Background

Actions for the <kbd>Home</kbd> and <kbd>End</kbd> keys are currently hard-coded in the Editor here.

The reason for this was to provide consistency with macOS (see Issue #495), because <kbd>Home</kbd> and <kbd>End</kbd> do not corresponds to the builtin MoveToStartOfLine and MoveToEndOfLine shortcut in this OS, as you can see in the table below.

image

Later, the custom start of line and end of line shortcuts were added to the keyboard shortcut preferences.

Problem Description

The hard-coded action for the Home keypress event do a Smart HOME feature (cursor is first moved at indentation position, then at the start of the line) while our custom start of line shortcut calls a standard MoveToStartOfLine action.

Also, I’m not sure that the hard-coded actions for Home and End are required anymore after the changes introduced in PR #7768.

I think we should :

  • Remove the hard coded action for Home and End in the editor.
  • Set the start of line action by default to Home
  • Set the end of line action by default to End
  • Do a “Smart Home” action when the start of line shortcut is pressed instead of a standard MoveToStartOfLine action
  • Add tests to cover this.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Sep 12, 2018

Your plan seems very thorough. Please go ahead with it.

0reactions
ccordoba12commented, Oct 2, 2018

Sure, no problem with that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyCharm keyboard shortcuts - JetBrains
Ctrl+Shift+A. Find Action. Find a command and execute it, open a tool window, or search for a setting. ; Alt+Enter. Show Context Actions....
Read more >
Visual Studio Code Tips and Tricks
From the Command Palette (Ctrl+Shift+P), select Preferences: Open Keyboard Shortcuts File, bind the desired shortcut to the workbench.action.tasks.runTask ...
Read more >
JavaScript Data Grid Keyboard shortcuts - Handsontable
Navigate the grid similarly to Google Sheets or Microsoft Excel, using built-in keyboard shortcuts. Create shortcuts of your own.
Read more >
Excel Data Entry Time-Saving Tips and Shortcuts and Fixes
Add line break in cell, use Excel's hidden data entry form, fix pasting problems, ... Keyboard Shortcut to Open Custom Lists Dialog.
Read more >
Run a shortcut while working on your Mac - Apple Support
A new action appears at the beginning of your workflow defining what input the shortcut will accept. The shortcut will now be available...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found