1
0
Fork 0
Commit Graph

24 Commits

Author SHA1 Message Date
blag ed89c154ee
For Python >= 3.11 directly use packaging to compare package versions (#1416)
* For Python >= 3.11 directly use packaging to compare package versions

* Improve prompt-toolkit check to test for feature explicitly
2023-09-12 12:46:34 -07:00
Daniel Kukula 372da81ec4
add explain visualizer (#1279)
* add explain visualizer

* format files

* remove humanize dependency

* disable by default

* add explain visualizer

* run black
2022-04-03 19:20:02 -07:00
Georgy Frolov 8aa3f92666
fix import (#1252) 2021-03-10 16:59:48 -08:00
Georgy Frolov 30212c6fc6
fixed unknown symbol REPLACE_SINGLE in prompt_toolkit < 3.0.6 (#1246)
* fixed unknown symbol REPLACE_SINGLE in prompt_toolkit < 3.0.6

* changelog
2021-02-22 14:54:23 -08:00
bitkeen e9c97072af
Use InputMode.REPLACE_SINGLE (#1208)
InputMode.REPLACE_SINGLE was added to prompt-toolkit.
This fixes Exception <InputMode.REPLACE_SINGLE: 'vi-replace-single'>
in single-char replace mode when using prompt_toolkit>=3.0.6.
2020-09-05 14:30:46 -07: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
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
Étienne BERSAC e124c03575
Fix PEP8 empty line errors 2017-06-14 18:12:05 +02:00
Irina Truong 4edd124c0d Merge pull request #621 from dbcli/koljonen/show_transaction_status
Add transaction status to toolbar
2016-12-12 15:06:51 -08:00
Joakim Koljonen f8b1647ae8
Add transaction status to toolbar 2016-12-07 04:39:03 +01:00
Joakim Koljonen 0129e49f7f
Display vi mode in the toolbar
I've been confused about what mode I'm in so many times ...
2016-12-07 03:00:50 +01:00
Joakim Koljonen 99868bbc31
Option for semicolon not to trigger execution in multiline mode
New setting multi_line_mode (default "psql"). If set to "safe",
[Esc] [Enter] or [Alt]-[Enter] is required to execute a query.
2016-09-12 22:28:32 +02:00
Jonathan Slenders 67d76bf7e8 Upgrade to prompt-toolkit-0.57 2016-01-17 05:52:15 +01:00
Darik Gamble 7ade315d36 Print refreshing in toolbar 2015-09-06 07:39:33 -04:00
Darik Gamble 27d6cb31b6 token argument wasn't being used 2015-09-06 07:39:33 -04:00
Jonathan Slenders e5f4e65658 Upgrade to prompt_toolkit==0.39 2015-06-04 17:13:41 +02:00
Jonathan Slenders 5f8126c179 Upgrade to prompt-toolkit 0.34 2015-05-11 13:29:45 -07:00
Daniel Rocco 01baee4933 Fix incorrect super() calls 2015-05-08 11:39:01 -04:00
Amjith Ramanujam 112f166f11 Make F4 toggle vi/emacs modes. 2015-02-12 22:29:00 -08:00
Amjith Ramanujam 5ddaf8f653 Use the default buffer instead of current_buffer. 2015-01-12 00:45:12 -08:00
Karl-Aksel Puulmann 0b7e04a161 Update prompt_toolkit version, now supporting CTRL+arrow shortcuts.
There were some incompatibilities with the previous API, outlined in their commit
0d0a5566a8.
2015-01-08 22:18:31 +02:00
Amjith Ramanujam 312770e10e F3 to toggle multi-line. 2014-12-15 22:04:03 -08:00
Amjith Ramanujam 764b5d5a8f Add a toolbar and keybinding F2 for smart completion. 2014-12-11 00:26:32 -08:00