# Inline Rename

_Inline Rename_ is the method of renaming files you're probably most familiar with, as it is the method that File Explorer uses. You edit the name of the file directly in the Lister, and pressing the Enter key applies the change immediately. It's straightforward, but only lets you rename one file at a time.

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-4aa96c1f04b0ddc3e4a86cf2fb5f9b58f445ee99%2Finline_rename.png?alt=media)

To enter _Inline Rename_ mode in Opus is basically the same as in File Explorer - select the file and press F2, click it twice (with a long delay between clicks), or right-click and choose Rename from the context menu. However you get there, simply edit the filename as desired and press Enter to accept the change.

To exit _Inline Rename_ mode without changing the name of the file, press the Escape key.

Opus provides some additional functionality in this mode that may not be immediately apparent, including:

### Changing what's selected by default

Initially only the stem of the filename is selected, not the entire name. Normally you don't want to change a file's extension, so auto-selecting only the stem saves you having to deselect the extension manually. You can change what's initially selected with the **Default selection mode** option on the [Renaming Files](../../preferences/preferences_categories/file_operations/renaming_files) Preferences page.

You can also control the intiial selection using the `Rename INLINE` raw command. For example, this would let you configure one [hotkey](../../customize/the_customize_dialog/keys) to enter inline rename with the filename stem selected, and another hotkey with the file extension selected instead.

### Select different parts of the name

* Ctrl+A to select all
* Ctrl+N or Ctrl+F to select the stem
* Ctrl+E to select the extension
* F2 to cycle between selecting the stem, selecting the extension, and selecting the whole name.

### Change case

* Ctrl+L to lower-case all
* Ctrl+U to upper-case all
* Ctrl+W to capitalize all words
* Ctrl+P to capitalize the first word

### Replace dots and underscores with spaces

* Ctrl+. (on the main keyboard, not the numeric keypad) to replace dots and underscores with spaces in the current selection.

Dots with numbers on both sides are left alone: For example, _"setup\_ultima\_underworld2\_2.1.0.20"_ would become _"setup ultima underworld2 2.1.0.20"_.

### Move to next or previous file

* Down (or Tab) to move to the next file
* Up (or Shift+Tab) to move to the previous file

Any changes you have made to the current file will be applied and the rename field will be moved to the next or previous file automatically. If you use this you can turn on the **Retain cursor position when moving to next/previous file** option on the [Renaming Files](../../preferences/preferences_categories/file_operations/renaming_files) Preferences page to have the cursor position retained from one file to the next.

### History of previously used names

* Ctrl+Up (or Shift+Up) to move up through the history
* Ctrl+Down (or Shift+Down) to move down through the history

### Copy names from adjacent files

* Ctrl+Shift+Up (or Ctrl+') to copy the name from the previous file
* Ctrl+Shift+Down to copy the name from the next file
* Ctrl+Shift+Home to reset the item to its original name and reset the up/down position (except in Thumbnails and Large Icon modes, where it selects to the start of the filename, not just the start of the current line)

Continue to press the keys to move up/down the list of neighboring files to copy their filenames. Hold the Alt key down as well as the above keys to also copy the extension.

### Fully configurable key strokes

A number of other key strokes are defined by default - and they are all configurable via the [Renaming Files / Control Keys](../../preferences/preferences_categories/file_operations/renaming_files/control_keys) page in Preferences. You can see what keys are defined, change their assignments and behaviors, and even create your own.
