Jump to content

KRename: Difference between revisions

From KDE UserBase Wiki
No edit summary
Claus chr (talk | contribs)
Marked this version for translation
 
(3 intermediate revisions by 2 users not shown)
Line 9: Line 9:
[[Image:krename-start.png]]
[[Image:krename-start.png]]


= Description = <!--T:18-->
== Description == <!--T:18-->


<!--T:19-->
<!--T:19-->
'''KRename''' is a tool to rename files easily.
'''KRename''' is a tool to rename files easily.


= Features = <!--T:20-->
== Features == <!--T:20-->


<!--T:21-->
<!--T:21-->
Line 25: Line 25:
* Plugins can be used to rename files using metadata from images, movies, music and more
* Plugins can be used to rename files using metadata from images, movies, music and more


= Usage = <!--T:24-->
<!--T:24-->
== Usage ==
Starting in the Files tab, '''Add''' the files to be renamed.
Starting in the Files tab, '''Add''' the files to be renamed.


<!--T:36-->
[[Image:krename-1.png]]
[[Image:krename-1.png]]
* If a file is not wanted, click '''Remove'''
* If a file is not wanted, click '''Remove'''
Line 33: Line 35:


<!--T:25-->
<!--T:25-->
== Destination ==
=== Destination ===
In the Destination tab, choose the action to be performed on the files
In the Destination tab, choose the action to be performed on the files
[[Image:krename-2.png]]
[[Image:krename-2.png]]
Line 42: Line 44:


<!--T:26-->
<!--T:26-->
== Plugins ==
=== Plugins ===
The plugins tab lists the plugins available
The plugins tab lists the plugins available
[[Image:krename-3.png]]
[[Image:krename-3.png]]
Available plugins are listed in the box on the left. Choosing a plugin displays the tags that are available when renaming files
Available plugins are listed in the box on the left. Choosing a plugin displays the tags that are available when renaming files


<!--T:27-->
=== Filename === <!--T:27-->
== Filename ==


<!--T:37-->
In the `Filename` tab you can define renaming rules with two levels of complexity, therefore two sub-tabs are provided: `Simple Filename` (default) and `Advanced Filename`.
In the `Filename` tab you can define renaming rules with two levels of complexity, therefore two sub-tabs are provided: `Simple Filename` (default) and `Advanced Filename`.


<!--T:38-->
Whichever tab you choose, the panel at the bottom shows a preview of the result of renaming, without applying any changes to the files yet.
Whichever tab you choose, the panel at the bottom shows a preview of the result of renaming, without applying any changes to the files yet.


<!--T:39-->
To make changes permanent, click on the '''Finish''' button.
To make changes permanent, click on the '''Finish''' button.


=== Simple Filename ===
<!--T:40-->
==== Simple Filename ====
[[Image:krename-4.png]]
[[Image:krename-4.png]]
Choose the naming scheme to use when renaming files
Choose the naming scheme to use when renaming files
Line 64: Line 69:
* The box at the bottom is a preview of the renamed file
* The box at the bottom is a preview of the renamed file


=== Advanced Filename ===
==== Advanced Filename ==== <!--T:41-->


<!--T:42-->
[[Image:Advanced Filename.png]]


= Authors = <!--T:9-->
===== Find and Replace... ===== <!--T:43-->
 
<!--T:44-->
With '''Find and Replace...''' you can set find/replace rules, possibly using regular expressions.
 
<!--T:45-->
Just click the '''Find and Replace...''' button, then the
'''Add...''' button in the popup that opens, and you will be presented with an additional popup where you can define a rule (i.e. a find/replace pair).
 
<!--T:46-->
For every rule you can optionally specify if it should be interpreted as a regular expression (regex).
 
<!--T:47-->
Below is an example on how to find and replace three capture groups:
* the first one matching 4 digits
* the second one matching 2 digits
* the third one matching 2 digits
all separated by a '-' sign.
 
<!--T:48-->
Notice that a capture group is defined by a pair of opening and closing '''(''' and ''')'''
 
<!--T:49-->
Also notice how these capture groups can later be referenced in '''Replace With:''', in order to build a date without the '-' separator.
 
<!--T:50-->
A capture group is referenced by its index (starting from 1), prefixed by a '''\''':
 
<!--T:51-->
[[File:Screenshot 20250424 084905.png]]
 
<!--T:52-->
This will yield the following:
 
<!--T:53-->
[[File:Screenshot 20250424 085445.png]]
 
== Authors == <!--T:9-->


<!--T:29-->
<!--T:29-->
Line 75: Line 119:
* Current maintainer: Heiko Becker <heirecka at exherbo dot org>
* Current maintainer: Heiko Becker <heirecka at exherbo dot org>


= More Information = <!--T:10-->
== More Information == <!--T:10-->


<!--T:35-->
<!--T:35-->
Line 86: Line 130:
* [https://bugs.kde.org/enter_bug.cgi?product=krename&format=guided Bug tracker]
* [https://bugs.kde.org/enter_bug.cgi?product=krename&format=guided Bug tracker]


<!--T:54-->
<!--Original KRename Manual-->
<!--Original KRename Manual-->
* Original Manual: [[File:KRename-3.0.12.pdf]]
* Original Manual: [[File:KRename-3.0.12.pdf]]

Latest revision as of 16:11, 1 May 2025

Lokalize
Lokalize
  A utility to rename multiple files

Description

KRename is a tool to rename files easily.

Features

  • Rename large numbers of files
  • Rename files, by simply adding a sequence of numbers or changing case, or by using regular expressions for more advanced use cases
  • Plugins can be used to rename files using metadata from images, movies, music and more

Usage

Starting in the Files tab, Add the files to be renamed.

  • If a file is not wanted, click Remove
  • Click Remove All to start over

Destination

In the Destination tab, choose the action to be performed on the files

  • Rename the files, leaving them in the original folder
  • Copy the files to another folder, renaming them. The original files are left untouched
  • Move the files to another folder, renaming them
  • Create symbolic links in another folder. The links use the naming method requested, the original files untouched

Plugins

The plugins tab lists the plugins available Available plugins are listed in the box on the left. Choosing a plugin displays the tags that are available when renaming files

Filename

In the `Filename` tab you can define renaming rules with two levels of complexity, therefore two sub-tabs are provided: `Simple Filename` (default) and `Advanced Filename`.

Whichever tab you choose, the panel at the bottom shows a preview of the result of renaming, without applying any changes to the files yet.

To make changes permanent, click on the Finish button.

Simple Filename

Choose the naming scheme to use when renaming files

  • For Prefix and Suffix, choose Number or Date to add each to the beginning or end of the filename. A custom string may be entered in the box next to the drop-down list
  • Choose an option for the Filename or Extension. Using Custom allows the use of the tags provided by plugins
  • If using numbers, choose a starting and ending range
  • The box at the bottom is a preview of the renamed file

Advanced Filename

Find and Replace...

With Find and Replace... you can set find/replace rules, possibly using regular expressions.

Just click the Find and Replace... button, then the Add... button in the popup that opens, and you will be presented with an additional popup where you can define a rule (i.e. a find/replace pair).

For every rule you can optionally specify if it should be interpreted as a regular expression (regex).

Below is an example on how to find and replace three capture groups:

  • the first one matching 4 digits
  • the second one matching 2 digits
  • the third one matching 2 digits

all separated by a '-' sign.

Notice that a capture group is defined by a pair of opening and closing ( and )

Also notice how these capture groups can later be referenced in Replace With:, in order to build a date without the '-' separator.

A capture group is referenced by its index (starting from 1), prefixed by a \:

This will yield the following:

Authors

  • Original author: Dominik Seichter <domseichter AT web.de>
  • Current maintainer: Heiko Becker <heirecka at exherbo dot org>

More Information