diff --git a/README.rst b/README.rst index 8b676954..81fd106f 100644 --- a/README.rst +++ b/README.rst @@ -3,6 +3,7 @@ A REPL for Postgres This is a postgres client that does auto-completion and syntax highlighting. +.. image:: screenshots/image02.png .. image:: screenshots/image01.png Installation diff --git a/TODO b/TODO index 2c290a02..dc305816 100644 --- a/TODO +++ b/TODO @@ -1,11 +1,8 @@ -* [X] Add borders around the table. -* [ ] Investigate why having a space in the beginning of the line breaks everything. * [ ] Add more complex slash commands such as \d . * [ ] Update README. -* [] Upload rev 2 to PyPI. +* [ ] Upload rev 2 to PyPI. * [ ] Add a new trigger for M-/ that does dumb completion. * [ ] Find a way to add documentation to sql commands. This could get tricky. -* [X] Deal with commands that have no return rows (such as delete, begin transaction etc). * [ ] Add a lot more SQL keywords to auto-completion (Read the postgres docs) * [ ] Add tests for smart completion. * [ ] Detect a '.' and parse the word before it and get it's real name. @@ -16,6 +13,9 @@ * [] Create a better framework for adding special commands. * A dict with special commands as keys. * The value can either be a string or a callable. +* [X] Deal with commands that have no return rows (such as delete, begin transaction etc). +* [X] Add borders around the table. +* [X] Investigate why having a space in the beginning of the line breaks everything. * [X] Test if the special comands are autocompleted correctly. * [x] Control smart completion via config file. * [x] Figure out how to deal with transactions. diff --git a/pgcli/config.py b/pgcli/config.py index e94bd746..5677125d 100644 --- a/pgcli/config.py +++ b/pgcli/config.py @@ -1,6 +1,7 @@ from shutil import copyfile from os.path import expanduser, exists from ConfigParser import SafeConfigParser +#from prompt_toolkit.contrib.pdb import set_trace def load_config(filename): filename = expanduser(filename) @@ -9,6 +10,8 @@ def load_config(filename): return parser def write_default_config(source, destination, overwrite=False): + #import pdb; pdb.set_trace() + #set_trace() destination = expanduser(destination) if not overwrite and exists(destination): return diff --git a/screenshots/image02.png b/screenshots/image02.png new file mode 100644 index 00000000..c321c861 Binary files /dev/null and b/screenshots/image02.png differ