Enable having a list of frequently used sqlite3 paths/binaries
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:
- It can be modified using JS
- It looks good on mobile
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.
Ideas:
Use alpine.js (I was planning to add it anyway).
- Use x-for to populate the datalist
<option>elements. - Use Alpine.store with Alpine.persist to store the user config.
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.