#1596 relative path placeholder

KeePass
closed
nobody
None
5
2013-06-08
2012-03-28
wellread1
No

I would like to define a trigger that syncs an arbitrary local database with a complementary database on a complimentary network share. A relative path placeholder would allow me to generalize the trigger. The {DB_DIR} placeholder is unsuitable because it returns the root along with the relative path.

-wellread1

Discussion

  • Dominik Reichl

    Dominik Reichl - 2013-06-08
    • status: open --> closed
    • Group: --> KeePass
     
  • Dominik Reichl

    Dominik Reichl - 2013-06-08

    Relative to what? A placeholder that returns the database path relative to KeePass.exe probably is not a good idea, because application files and user data should in general be separated.

    If you meant relative to the root of the drive: I've now added a {T-REPLACE-RX:...} placeholder, which replaces text using a regular expression. This can be used to strip or replace the drive letter. For example
    {T-REPLACE-RX:/{DB_PATH}/.(.*)/N$1/}
    replaces the drive letter of {DB_PATH} by 'N'.

    Details on the syntax of {T-REPLACE-RX:...} can be found here:
    http://keepass.info/help/base/placeholders.html#texttrf

    Here's the latest development snapshot for testing:
    http://keepass.info/filepool/KeePass_130608.zip

    Thanks and best regards,
    Dominik

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks