1
0
Fork 0
Commit Graph

26 Commits

Author SHA1 Message Date
Irina Truong d67272214c Preserve comments when writing to config file. 2021-02-26 12:41:04 -08:00
Georgy Frolov c9fd72449e
skip initial comment in pg_session file (#1245)
* skip initial comment in pg_session file

* add test
2021-02-22 14:55:55 -08:00
Georgy Frolov 61c81b05f5 removed py2-related stuff 2020-03-14 10:53:43 +08:00
Irina Truong 8cb7009bcd
black all the things. (#1049)
* added black to develop guide

* no need for pep8radius.

* changelog.

* Add pre-commit checkbox.

* Add pre-commit to dev reqs.

* Add pyproject.toml for black.

* Pre-commit config.

* Add black to travis and dev reqs.

* Install and run black in travis.

* Remove black from dev reqs.

* Lower black target version.

* Re-format with black.
2019-05-25 13:08:56 -07:00
Dmitry B 0ccf008cf8 look for config in XDG_CONFIG_HOME first 2017-10-03 22:27:24 +03:00
Irina Truong b3537d4249 Some pep8 in config module. 2017-05-28 15:03:45 -07:00
Fabien Meghazi 5c6be4513e XDG_CONFIG_HOME support for config file location 2016-09-13 22:47:35 +02:00
Amjith Ramanujam 2fb030b72a Read config files using utf-8 encoding. 2016-07-31 21:34:52 -07:00
koljonen 7e45e893ca
Custom casing of table/column/function/view names
This adds support for defining the casing to be used in completions (for unquoted names). The casing is determined by the casing file, which consists of a \n-separated list of names using the preferred casing. This file can either be populated manually or created automatically (based on usage in SQL/PLPGSQL functions), with a config setting.
2016-06-04 23:05:32 +02:00
koljonen 740085dd23
Order columns by in-table order when expanding *
And add a setting to use alphabetic order instead.
We simply get the columns from the database in the canonical order, and then sort them if the user has opted for alphabetic order.
2016-05-31 01:29:44 +02:00
James Munson 5c2056fb6f Fix bug where config writing would leave a '~' dir
we now expand the path in ensure_dir_exists
2016-05-06 20:30:19 -07:00
David Szotten 85181ab252 factor out `ensure_dir_exists` and use for log 2016-02-03 22:28:04 +00:00
David Szotten bea392d7ed ensure target dir exists when copying config 2016-02-03 20:45:36 +00:00
Amjith Ramanujam 6fd2806e6f Switch the location of log/history file based on OS. 2015-11-04 18:21:59 -08:00
Amjith Ramanujam 56efde5364 Automatic migration of config file. 2015-09-20 15:01:15 -07:00
Amjith Ramanujam 5dc20b248f Assign a filename to the config obj. 2015-06-20 08:44:12 -07:00
Amjith Ramanujam 8a5429e1fb Expand the path for the user config file. 2015-05-30 14:31:30 -07:00
Amjith Ramanujam 9327a4db38 Simplify config file handling. 2015-05-30 13:03:19 -07:00
Brett d390a2af35 fix precendence order of default and user config 2015-05-29 07:35:15 -04:00
Brett 81e98a80e4 replace configparser with configobj 2015-05-28 07:39:40 -04:00
Amjith Ramanujam bca8e2ef4a Add logging and cleanup main. 2015-01-04 14:52:04 -08:00
Iryna Cherniavska f2ecb2ed67 Fix for bug #12: Config reading is failing when an option is missing. 2014-12-30 15:36:11 -08:00
Amjith Ramanujam b0bea4dc50 Python3 compatibility. 2014-12-14 22:05:11 -08:00
Amjith Ramanujam 2825db5ee4 Add an extra screenshot. 2014-11-30 22:22:06 -08:00
Amjith Ramanujam 6a6cb8f245 Fix the config reader bug. 2014-11-27 22:06:31 -08:00
Amjith Ramanujam 6e5cd51643 Add config file. 2014-11-27 15:02:54 -08:00