I often need to rename longer filenames in Finder. I used to do Shift + Command + / to select text from cursor to the start/end of the field.

But in macOS Mojave, suddenly this combination started to switch to previous/next Finder tab - so when I use the shortcut, file name editing is cancelled and I get switched to a new tab.

This doesn't happen in macOS High Sierra, and it's described in Apple's support document, Mac keyboard shortcuts as:

  • Shift–Command–Left Arrow: Select the text between the insertion point and the beginning of the current line.

  • Shift–Command–Right Arrow: Select the text between the insertion point and the end of the current line.

Is this a bug? Is there a known workaround?

up vote 2 down vote accepted

The vast majority of textboxes on macOS (including those in third-party apps) support Emacs keybindings for moving around text. These use the Ctrl key instead of Command and are thus less likely to be remapped randomly by OS changes.

In your specific case, you can use Ctrl+Shift+A and Ctrl+Shift+E to select text from the cursor to the start or end of the line respectively. These shortcuts can be entered entirely with your left hand, which might even speed you up a little.

Other useful shortcuts: Ctrl+A and Ctrl+E move the cursor to the start or end of the line respectively, while Ctrl+K deletes the text from the cursor to the end of the line. Full lists of shortcuts are posted in various spots on the web; you can check this site for example.


Also, if you're finding yourself renaming files often in Finder, consider using the multi-file renaming tool built into the Finder. Simply select multiple files, right-click (or ctrl-click/two-finger click) on them and select "Rename N Items...". This pops up a dialog box that lets you do some simple rename transformations (adding text, replacing text, or formatting names sequentially).

  • Thanks! I don't like to learn Emacs shortcust, but this seems like the only possible way. Thank you Apple :). – Tomáš Kafka Nov 17 at 23:38
  • Truthfully, I learned these from a friend many years ago, and only found out recently that they were the emacs keybindings. I do not use emacs myself :) – nneonneo Nov 18 at 21:14

If you set your own shortcut for moving between tabs of a window, the Shift-Command-Arrow combinations will work as before.

To set your own shortcut:

  • Open System Preferences -> Keyboard -> Shortcuts
  • Select App Shortcuts at the bottom.
  • Click the + button to add a shortcut.
  • Make sure that "All Applications" is selected
  • Type in the exact names of the commands, on an English system they would be 'Show Previous Tab' and 'Show Next Tab'. Check this in the Window Menu in Finder if you're not sure.
  • Add your preferred shortcut to switch between tabs in either direction

enter image description here

  • Thanks, this sounds great, but I can put there anything except for cmd+tab / cmd+shift+tab which I want :/ – Tomáš Kafka Nov 17 at 23:35

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.