Skip to content

v0.9.5 - quotes close themselves in the shell

Choose a tag to compare

@Kenzy-Zero Kenzy-Zero released this 27 Jul 06:04
· 8 commits to main since this release

Typing ' in the interactive shell now inserts the pair and leaves the cursor between them, so a text filter can be typed straight through:

kenze > filter city = '        <- you type one quote
kenze > filter city = '|'      <- you get the pair, cursor in the middle

Requested by a user who kept having to add the closing quote by hand.

  • Typing the closing quote steps over the one already there, so filter city = 'London' never becomes filter city = 'London''.
  • Backspacing the opening quote of an auto-added pair removes both.
  • " behaves the same way, which is how paths with spaces get typed: load "Feb 10.csv".
  • An apostrophe inside a word (don't) is left alone, as is a quote typed in front of existing text.

pip install --upgrade kenze