gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gcmd-dev] [NEW] Advrename on steroids


From: Piotr Eljasiak
Subject: [gcmd-dev] [NEW] Advrename on steroids
Date: Mon, 17 Nov 2008 23:36:52 +0100

Hi folks,

Rev. #2283 brings brand new advrename dialog. Rewritten from scratch,
the dialog gives better (I hope ;o) control over renamed files.
Here goes the brief summary of the changes:

Options:
    - removal of Options buttons - all counter entries are now
      accessible directly from dialog window.
    - removal of ‘Auto update’ checkbox – all changes
      are always applied automatically.

Regex replacing:
    - usage of Glib GRegex (since GLib 2.14) – that provides full
      support for UTF8 matching and enables backreference substitution:
      \0 in ‘Replace with’ field refers to the complete match,
      \n (n=1, 2, ..., 9) refers to captured subexpression of the match.
      For example:

          regex:          (gnome) *(commander)
          replacement:    \2 of \1

          gives:          commander of gnome

      when matched against ‘gnomecommander’

      Additionally, the following escapes allow the case conversion
      in the replacement string:

          \l  convert to lower case the next character
          \u  convert to upper case the next character
          \L  convert to lower case till \E
          \U  convert to upper case till \E
          \E  end case modification

      so in the above example:

          replacement:    \u\2 of \U\1\E

      should result in:    Commander of GNOME

      Complete and VERY detailed list of regex features 
      can be found here:
      http://library.gnome.org/devel/glib/stable/glib-regex-syntax.html

      When gcmd is built with GLib<2.14, the plain old extended regexes
      are used
     (http://www.opengroup.org/onlinepubs/007908799/xbd/re.html)
      and the backreferencing is disabled.

    - malformed regexes are marked in red
    - removal of Up/Down buttons – just use drag-n-drop
    - double click starts editing the regex

Case conversion and blank trimming – self explanatory

Results:
    - new columns: file size and mdate
    - context menu (please do try)
    - double click shows file properties
    - drag-n-drop – allows rearrangement of files (useful with counters)

Apply button:
    - applies changes to the files, but does NOT close 
      the dialog window.
      The file list is updated with new file names 
      (marking the failed renames)


Enjoy,
Piotr






reply via email to

[Prev in Thread] Current Thread [Next in Thread]