Closed elig0n closed 3 years ago
Merging #107 (098d40a) into master (93c7a3b) will increase coverage by
0.01%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #107 +/- ##
==========================================
+ Coverage 62.32% 62.34% +0.01%
==========================================
Files 23 23
Lines 1935 1936 +1
==========================================
+ Hits 1206 1207 +1
Misses 729 729
Impacted Files | Coverage Δ | |
---|---|---|
litecli/main.py | 48.13% <100.00%> (+0.09%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 93c7a3b...098d40a. Read the comment docs.
@elig0n Thanks for your PR. Yeah, it makes more sense to show a shorter basename than the full file path.
SQLite is different than other databases, we probably need to rethink about the database names in SQLite and related commands (e.g. use
).
For now, I would prefer:
\d - Database name
the same as before .\f
to \f - File basename of the "main" database
.Let me know what you think.
I forgot check the CHANGELOG.md. Could you add this change to CHANGELOG.md?
Description
The prompt format string
\d
(which is also the default) is replaced with the full path to the open database, even when the database file is in the current directory.The Problem
This can get long sometimes and make the prompt input line shortened very much, especially on small terminals. Some users might desire to display the shortened base-name version of the database for convenience.
Suggested Solution
Hence, I've added the option
\f
for showing only the basename. Otherwise, a relative-path sensitivity for the\d
format string should be implemented.Checklist
CHANGELOG.md
if I get an OK