Skip to main content

Managing rules

TODO: Proof read, upload images, update links.

This sectionpage explains how to addadd, rules,remove, removeedit, rules,and editreorder rules in the Rules pane.

Most actions for managing rules are available via the toolbar above the pane, the right-click context menu, or keyboard shortcuts. See the Rules menu article for a rulefull and change the order in which they are applied to files and folders.reference.

Adding rules

HowAddRulesWorks.pngReNamer add rule dialog guide.png

    To

  1. Rulesopen the Add Rule dialog, click the Add Rule button in the toolbar or press the Insert key. You can bealso addedright-click by using any of the following methods:
    • Click the AddRuleButton.png button,
    • Click insidein the Rules pane area,
    • and
    • Pressselect Add Rule, Add Rule (above), or Add Rule (below) to control where the Insnew key when the ReNamer windowrule is active.
    • inserted.

  2. The Add Rule window pops up.
    • Select the desired rule.

    • rule
    type
  3. The options forfrom the selectedlist ruleon the left. Its options appear immediately in the Configurationconfiguration area (aton right).the
      right.
    • Set the desired parameters,parameters as explainedneeded, inthen eachclick rule.
    • Add
    Rule
  4. to
  5. Pressadd the AddRuleButton.png button at the bottom of the window. The rule is addedit to the stackstack. andTo add another rule, repeat the windowprocess. isClick closed.
  6. Repeat steps 1-5Close to add more rules. Each new rule is added atdismiss the end of the stack.
  7. To close the windowdialog without adding a rulerule.

    To duplicate an existing rule, select it and press theShift+Ins, "Close"or buttonuse (orDuplicate Rule from the windowcontext closemenu. iconThe atduplicate is inserted immediately below the top right corner).

original.

Removing rules

ToSelect removea (delete) an existing rule, select itrule and press DELDel, or clickuse onRemove Rule from the RemoveButton.pngcontext button.menu.

To remove all rules at once, press Shift+Del or use Remove All Rules.

Changing the order ofReordering rules

All rulesRules are applied to each file in the order they appear.appear Even within the pane. The same set of rules, the end-resultrules can beproduce very different ifresults the order of the rules is changed.

You can change the order of rules using any of the following methods:

  1. Using the UpButton.png and DownButton.png buttons.
  2. Pressing CTRL + Up/Down arrows.
  3. Drag-and-drop any rule with mouse.

Editing rules

Editing a rule means changing its parameters and options, and then saving the rule.

You can edit a rule using any of the following methods:

  1. Double-clickdepending on it,
  2. their
  3. Right-click on it and select the Edit Rule option
  4. Select it and press ENTER.

A window similar to the Add Rules window appears. There are only two minor differences: the button at the bottom is titled Save Rule, and the rules list in the left pane is greyed out (because you are not supposed to select rules in this window).

Change the parameters and options, and press the Save Rule button or ENTER.

Selecting a rule

When a rule is selected, its entire row is highlighted. Only one rule can be selected at a time.order.

To selectreposition a rule, use any of the following methods:following:

    • Click anywherethe Move Up or Move Down buttons in the rowtoolbar.
    • except
    • Press onCtrl+Up or Ctrl+Down.
    • Drag the checkrule box.to the desired position.

    Editing rules

    To edit an existing rule, use any of the following:

    • Double-click it.
    • UseSelect it and press Enter.
    • Right-click it and select Edit Rule.

    The rule's configuration dialog opens, pre-populated with the Upcurrent settings. Adjust the parameters and Downclick arrowSave keys on your keyboardRule to moveapply the selection to another rule.

changes.

Marking and unmarking a rulerules

AMarking is independent of selection. Only marked rules are applied during preview and renaming. Unmarked rules are skipped entirely.

Unmarking a rule is marked by putting a tickconvenient inway itsto checktemporarily boxCheckedCheckbox.png. Conversely,disable it is unmarked bywithout removing it from the tick UncheckedCheckbox.png.pane.

ReNamerTo uses onlytoggle the marked rulesstate for the preview and renaming operations.

So unmarkingof a rulerule, isclick usefulits tocheckbox temporarilyor disableselect the rule without having to remove it from the Rules pane.

To mark/unmark the rules:

  1. Click on the check box.
  2. Select a rule and press Spacebar. To mark or unmark all rules at once, use Mark All (Shift+M) or Unmark All (Shift+U) from the context menu.

    Annotating rules

    Any rule can be annotated with a custom comment, visible in the Comment column of the SpacebarRules pane. (onThis youris keyboard)

  3. particularly
useful

Repeatfor ofdocumenting anycomplex ofrules thesesuch actionsas togglesPascal theScript marked/unmarkedor status.Regular Expressions.

TheTo reasonsadd foror unmarkingedit a rulecomment, are:

  1. You want to removeselect the effect of a rule and seepress whatShift+Enter, happensor touse Comment from the files.
  2. context
  3. Youmenu.

    have

    Saving arules favoriteas presets

    A set of rules thatcan yoube usesaved often.as However,a youpreset needand reloaded on demand, making it easy to removereuse acommon fewrule rulesconfigurations inacross somesessions. cases.See AUsing trickpresets isfor tomore saveinformation.

    the superset of rules and reload them automatically each time you start ReNamer. Then in each session, unmark some rules.