1
0
mirror of https://github.com/dbcli/pgcli synced 2024-05-31 01:17:54 +00:00
Commit Graph

2204 Commits

Author SHA1 Message Date
Daniel Egger
b92743368b Bugfix for #938: load named queries from provided config file 2018-10-31 18:46:04 +01:00
Daniel Egger
f71a70fc93 Refactor dbname and username options/arguments to match psql-behaviour 2018-10-30 23:25:22 +01:00
Irina Truong
589c2abdfb
Missed changelog update. (#960) 2018-10-30 07:41:38 -07:00
DanEEStar
abb801e4af Set default port in get_prompt when none is given, fixes #958 (#959) 2018-10-30 07:28:28 -07:00
Dick Marinus
12ad10f697 Clean up and add behave logging (#956) 2018-10-14 13:53:19 -07:00
Irina Truong
fcf0eb022e
Fix for pgcli --list. (#952)
Fix for pgcli --list
2018-10-02 17:10:43 -07:00
Artur Balabanov
f897ea466e Merge branch 'master' into tab-on-line-start 2018-10-01 10:25:13 +01:00
Irina Truong
ec5131e1da Releasing version 2.0.0 2018-09-29 02:51:58 +00:00
Amjith Ramanujam
8428e3fff1
Merge pull request #948 from dbcli/j-bennet/release-2.0.0
Changelog update to release 2.0.0.
2018-09-28 15:57:45 -07:00
Irina Truong
029a1be016 Changelog update to release 2.0.0. 2018-09-28 14:25:54 -07:00
Irina Truong
392491a74d
Cherry-picked prompt-toolkit 2.0 changes. (#930)
* Cherry-picked prompt-toolkit 2.0 changes.

* Increase help timeout.

* Missed one.

* Fixes editor command.

* Expect exact to fix named query error.

* Unicode is non-optional with ptk 2.0.

* Unicode literals all the things (almost).

* PEP8.

* Change how we swap completers.

* By default, bottom toolbar styles are reversed. We don't want that.

* Adapt styles to 2.0.

* The future is now. Switch to ptk 2.0 style names.

* PEP8.

* Flag for enable_open_in_editor.

* add class:prompt to prompt

* Removed workaround for #668. Some renaming.

* use pgcli.completer instead of app.current_buffer.completer

* enable_system_prompt=True like old prompt toolkit

* keep search_ignore_case enabled (was ignore_case)

* fix closing parenthese

* keep marking class:continuation token for continuation

* capture KeyboardInterrupt manually

AbortAction has been removed in Prompt_toolkit 2.0

* replace C-J with enter, add more comments

* reversed ([...]) to [(...)] (oops)

* pep8 fixes

* Does Vi mode have to be applied to session every time?

* (workaround) also enable vi_mode after edit command

* Fixed test errors after rebasing on master.
2018-09-28 14:18:40 -07:00
Irina Truong
d3bdb891d3 Releasing version 1.11.0 2018-09-24 16:25:12 -07:00
Irina Truong
a93ef6f769
Merge pull request #944 from dbcli/j-bennet/release-1.11.0
Changelog update to release 1.11.0.
2018-09-24 16:24:14 -07:00
Irina Truong
dfe700edea Changelog update to release 1.11.0. 2018-09-24 16:23:26 -07:00
Irina Truong
364ee6c33d
Merge pull request #871 from maxrothman/master
Respect \pset pager on expected behavior
2018-09-23 14:34:58 -07:00
Max Rothman
172c9cd271 Respect \pset pager on expected behavior
"\pset pager" has three possible values: "always", "on", and "off".
pgcli previously treated all non-"off" values as "always". This change
implements the expected behavior, which is to use the pager when the
output is larger than the terminal height (See \pset pager in
https://www.postgresql.org/docs/9.2/static/app-psql.html). Pgcli adds to
this by also using the pager when the output is wider than the terminal
width.

Fixes #813
2018-09-23 17:02:08 -04:00
Irina Truong
381869b727
Merge pull request #942 from dbcli/j-bennet/testing-experiments
Revert abs imports in tests.
2018-09-22 15:42:45 -07:00
Irina Truong
741a325953 pep8 2018-09-22 22:34:00 +00:00
Irina Truong
e6e26d558f Revert abs imports in tests. 2018-09-22 22:19:25 +00:00
Irina Truong
7889b2838f
Merge pull request #941 from dbcli/j-bennet/testing-fixes
Attempt to fix failing tests
2018-09-21 21:38:40 -07:00
Irina Truong
7f2d83183e pep8 2018-09-22 04:28:13 +00:00
Irina Truong
683487a873 Attempt to fix failing tests. Add some debug info. Make imports py3-compatible. 2018-09-22 04:03:11 +00:00
Artur Balabanov
7602998c81 On the first line only autocomplete is always triggered, regardless of whether it's empty or not 2018-07-29 09:38:23 +01:00
Artur Balabanov
77170407ad Access the current line directly from the Document instance instead of calculating it manually 2018-07-29 09:35:15 +01:00
Irina Truong
5834259535 Releasing version 1.10.3 2018-07-27 12:06:53 -07:00
Irina Truong
1ddeaf012b
Merge pull request #929 from dbcli/j-bennet/release-1.10.3
Let's release more bugfixes.
2018-07-27 12:04:18 -07:00
Irina Truong
3f52d8db96 Let's release more bugfixes. 2018-07-27 12:03:12 -07:00
Irina Truong
e7121e7acd
Merge pull request #926 from dbcli/j-bennet/bump-pgspecial
Bump pgspecial
2018-07-27 10:31:11 -07:00
Irina Truong
41a2b49acc In fact bump even further. 2018-07-27 10:27:32 -07:00
Artur Balabanov
3cef794dd4 PEP8 warnings fixed 2018-07-27 18:08:03 +01:00
Artur Balabanov
632045487f Updated changelog 2018-07-27 17:15:32 +01:00
Artur Balabanov
676b5e6ff6 Add a config option -- expand_tab. If set, \t character will be replaced by 4 spaces when a <Tab> key is pressed on an empty line 2018-07-27 17:07:18 +01:00
Artur Balabanov
2870103d5d Docstring updated for the Tab key binding method 2018-07-27 16:47:15 +01:00
Artur Balabanov
205949a79b Tab press on an empty line is interrupted as a \t character insert 2018-07-27 16:44:38 +01:00
Amjith Ramanujam
f12b472f49
Merge pull request #927 from dbcli/j-bennet/keyring-honor-config
Fixes keyring = False not honored.
2018-07-26 17:17:35 -07:00
Irina Truong
c48a68c2bd Changelog. 2018-07-26 05:11:41 +00:00
Irina Truong
9063f02256 Fixes keyring = False not honored. 2018-07-26 05:09:23 +00:00
Irina Truong
110a9c61f1 Bump pgspecial to 1.11.1. 2018-07-25 19:23:54 -07:00
Irina Truong
688f09c091
Merge pull request #921 from lelit/pg11b2
Fix issue #919
2018-07-25 08:30:34 -07:00
Lele Gaifax
05ec05c4cb Adapt the query used to get functions metadata to PG11
This fixes #919.
2018-07-25 08:13:17 +02:00
Lele Gaifax
6a18b6d0e3 Emanuele Gaifas -> Lele Gaifax 2018-07-25 08:11:13 +02:00
Amjith Ramanujam
9aae5ee34a
Merge pull request #923 from dbcli/j-bennet/fix-server-version
Change server version query.
2018-07-24 15:23:56 -07:00
Irina Truong
3b7f30dff6 Changelog. 2018-07-24 15:17:08 -07:00
Irina Truong
22d184dc6b Change server version query. 2018-07-24 15:14:53 -07:00
Irina Truong
e4f02b247e Releasing version 1.10.2 2018-07-23 17:09:57 -07:00
Irina Truong
eefe294cc9
Merge pull request #918 from dbcli/j-bennet/release-1.10.2
Changelog update to release 1.10.2.
2018-07-23 17:09:14 -07:00
Irina Truong
f24f484310 Changelog update to release 1.10.2. 2018-07-23 17:08:09 -07:00
Irina Truong
97b7d22599
Merge pull request #916 from dbcli/feature/optional_keyring
make keyring optional
2018-07-23 17:04:55 -07:00
Dick Marinus
868b81aa98 make keyring optional 2018-07-22 07:34:56 +02:00
Amjith Ramanujam
abc8d51dd3
Merge pull request #915 from dbcli/j-bennet/add-server-version
Print server version as part of welcome message.
2018-07-20 17:10:07 -07:00