Menu

How to restore last view when unlocking database

Help
Mark
2023-02-11
2023-02-13
  • Mark

    Mark - 2023-02-11

    Is there a setting that will configure KeePass to open a database to the view (folder/entry) that was last seen before the database was locked (either automatically or during shutdown)? Right now, it seems like KeePass is choosing some random folder/entry view. It's really annoying to have to search and select the last entry I was using each time the database is opened.

     
  • Paul

    Paul - 2023-02-12

    KeePass stored the last Group viewed in the database, therefore it only updates if you save the database.

    cheers, Paul

     
    • Mark

      Mark - 2023-02-12

      If that's the case, is there a way to configure KeePass to automatically save anytime the automatic lock is triggered? This would solve my problem.

       
  • wellread1

    wellread1 - 2023-02-12

    You can use a trigger. The following trigger will save unconditionally when a database is locked or closed. Copy the entire trigger, use Tools>Triggers...>Tools button (button at lower left of Triggers dialog)>Paste Triggers from Clipboard to paste the trigger into the trigger system. Press the 'OK' button on the Triggers dialog to Save the trigger.

    <?xml version="1.0" encoding="utf-8"?>
    <TriggerCollection xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Triggers>
            <Trigger>
                <Guid>Go93dzywDkyoCr56zLaopg==</Guid>
                <Name>Unconditional Save on Database Lock or Close</Name>
                <Events>
                    <Event>
                        <TypeGuid>jOremqgXSRmjL/QeOx3sSQ==</TypeGuid>
                        <Parameters>
                            <Parameter>0</Parameter>
                            <Parameter />
                        </Parameters>
                    </Event>
                </Events>
                <Conditions />
                <Actions>
                    <Action>
                        <TypeGuid>9VdhS/hMQV2pE3o5zRDwvQ==</TypeGuid>
                        <Parameters />
                    </Action>
                </Actions>
            </Trigger>
        </Triggers>
    </TriggerCollection>
    
     

    Last edit: wellread1 2023-02-12
  • Paul

    Paul - 2023-02-13

    If you are saving that much it may be possible to inadvertently save changes you didn't want.
    Make sure you have regular backups - see the Backup Wiki.

    cheers, Paul

     

Log in to post a comment.

MongoDB Logo MongoDB