litexplore icon indicating copy to clipboard operation
litexplore copied to clipboard

Enable having a list of frequently used sqlite3 paths/binaries

Open polyrand opened this issue 3 years ago • 2 comments

Typing the full path to the SQLite file can be tedious. It would be great to offer a good autocomplete list with options based on past inputs. Turning autocomplete="on" in the <input> or <form> elements hasn't worked for now. I'm thinking about using instead.

Using datalist has a few advantages:

I'm thinking the configuration screen (#3) should also let the user add/remove common paths for the suggestions. I could also link each remote host with a list of common paths. But initially I will just have a single list of common paths.

polyrand avatar Jun 30 '22 16:06 polyrand

Ideas:

Use alpine.js (I was planning to add it anyway).

polyrand avatar Jun 30 '22 17:06 polyrand

Example code:

        <datalist id="suggested-paths">
            <option value="Chocolate">
            <option value="Coconut">
            <option value="Mint">
            <option value="Strawberry">
            <option value="Vanilla">
        </datalist>

Then add list="suggested-paths" to the <input> element for the SQLite paths.

polyrand avatar Jun 30 '22 23:06 polyrand