Giter VIP home page Giter VIP logo

Comments (8)

lucydodo avatar lucydodo commented on June 4, 2024 1

Cool, I'll try to implement it in free time this week. :)

from sqlitebrowser.

chrisjlocke avatar chrisjlocke commented on June 4, 2024

If you click 'File' and 'Recent files' you'll see a list of last used files. These also have a numeric prefix.
If you press Ctrl+this number (at least on Windows .. you didn't say what OS you use, but it should work in other OS's), that database will open.
So if you want the last used database, simply press Ctrl+1.

from sqlitebrowser.

lucydodo avatar lucydodo commented on June 4, 2024

@chrisjlocke has kindly already suggessted an alternative, but I think this would be a good idea to implement as a feature.
However, there is one thing I'd like to think about before implementing it.
What should DB4S do if the last opened DB file is inaccessible? (permission issue or removed file etc)
Should it print a warning message and automatically disable that option?

from sqlitebrowser.

justinclift avatar justinclift commented on June 4, 2024

Maybes some kind of warning like this?

Automatically loading the last opened database didn't work.

Database FOOO.sqlite not found at /home/foo/bar/FOOO.sqlite

from sqlitebrowser.

lucydodo avatar lucydodo commented on June 4, 2024

Yes, that would be great. and would it be a more user-friendly design to disable the option with warning, and then if user open any DB files in that esssion, to re-enable it?

from sqlitebrowser.

justinclift avatar justinclift commented on June 4, 2024

Interesting idea.

As it'll probably need to be a user preference of some sort anyway (Automatically load last-used database?), I wonder if it's possible to include a toggle option in the warning dialog when it fails to load?

If so, that'd probably make for the least amount of surprise:

Automatically loading the last opened database didn't work.

Database FOOO.sqlite not found at /home/foo/bar/FOOO.sqlite

[x] Keep trying to automatically load the last used database?

from sqlitebrowser.

justinclift avatar justinclift commented on June 4, 2024

Cool. 😄

from sqlitebrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.