1
0
Fork 0
Commit Graph

21 Commits

Author SHA1 Message Date
Dan Church 385ec87657
Fix dead link 2022-09-14 15:46:51 -05:00
bitkeen d9adca7d5e
Add Token.Prompt/Continuation (#1207) 2020-09-06 21:52:12 -07:00
Sky.G.Uieen 41dd24e8da
Add custom color (#1196)
* Updated author, changelog for supporting color of string, number, keyword

* Added string, number, keyword custom color
2020-07-07 20:19:22 -07:00
laixintao 0c24e8bda2
Support style for missing value. (#1186)
* Support style for missing value.

* update changelog.

* upgrade minimal version of cli_helpers, in order to use style for null.
2020-05-28 15:29:50 -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
fraoustin 88b12c1e2c move style_factory_output in pgstyle 2018-03-04 11:41:10 +01:00
fraoustin ade6142ef8 add color for table 2018-03-04 11:05:50 +01:00
fraoustin f5f28dd8c7 correction of my mistake ... revert -2 2018-01-11 21:40:45 +01:00
fraoustin 5438d508be add color in table and token parameter 2018-01-11 20:58:07 +01:00
Jonathan Slenders 67d76bf7e8 Upgrade to prompt-toolkit-0.57 2016-01-17 05:52:15 +01:00
Darik Gamble 5efa55af02 Replace eval with pygments.string_to_tokentype 2015-08-07 09:39:02 -04:00
Amjith Ramanujam 16eb98a7ce Add custom styles for menus, toolbars etc. 2015-08-06 21:14:49 -07:00
Amjith Ramanujam c75f7406ce Change style for completion meta entries. 2015-07-09 17:06:15 -07:00
Darik Gamble 43612c86a3 Set completions meta-text styling to match 2015-07-09 19:08:30 -04:00
Jonathan Slenders 5f8126c179 Upgrade to prompt-toolkit 0.34 2015-05-11 13:29:45 -07:00
Amjith Ramanujam c82efa3d0d Add safety check for non-existent style. 2015-02-04 18:41:02 -08:00
Amjith Ramanujam d159f0d474 Add syntax styles to config. 2015-02-03 23:31:35 -08:00
Amjith Ramanujam 764b5d5a8f Add a toolbar and keybinding F2 for smart completion. 2014-12-11 00:26:32 -08:00
Amjith Ramanujam 34bdecea61 Move pgcli into a directory and make a package. 2014-11-26 00:02:34 -08:00