Add auto adjust for columns based on terminal width

With flags -a to override any auto adjust and just keep default column
width. And flag -c for automatic compact view (40% column size
reduction)

The auto adjust on terminal size larger than needed is only for path
column at the moment.

For smaller it will auto adjust each column slowly in 10% steps until
the width is smaller than the terminal width.

Side note: CJK characters can still be reason for a skewed layout.
This commit is contained in:
2018-03-07 18:32:21 +09:00
parent a3496279a9
commit a4f694f5d6
2 changed files with 76 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ reverse_geolocate.py [-h] -i
[-l LIGHTROOM FOLDER] [-s]
[-f <overwrite, location, city, state, country, countrycode>]
[-g GOOGLE API KEY] [-o] [-e EMIL ADDRESS] [-w]
[-r] [-n] [-v] [--debug] [--test]
[-r] [-a] [-c] [-n] [-v] [--debug] [--test]
### Arguments
@@ -43,6 +43,8 @@ Argument | Argument Value | Description
-e, --email | email address | For OpenStreetMap with a large number of access
-g, --google | Google Maps API Key | If available, to avoid the access limitations to the reverse location lookup
-r, --read-only | | Read only data from the XMP files and print them out. No LR DB connection is done or any map lookups
-a, --no-autoadjust | | Do not try to auto adjust column width to terminal column width
-c, --compact | | Do extra compact view
-w, --write-settings | | Write the Google API key or the OpenStreetMap email into the settings file
-v, --verbose | | More verbose output. Currently not used
--debug | | Full detailed debug output. Will print out alot of data