Skip to content

tab completion fails with comma, space #2463

Open
digitalsentinel opened this Issue Oct 3, 2012 · 1 comment

3 participants

@digitalsentinel

When using tab completion a comma does not continue with prefix. specifically

In [27]: ls
data_summary_YK.txt PIC_syncs/ test.png YK.2003.2012,13.dmc.sync YK.2003.2012,256.dmc.sync YK_data_summary.txt
ms2dmc/ rdseed.err_log.12.17.10 YK.2003.2010,351.dmc.sync YK.2003.2012,16.dmc.sync YK.2003.2012,257.dmc.sync
Northbay.pdf statefile YK.2003.2012,12.dmc.sync YK.2003.2012,255.dmc.sync YK.2003.2012,47.dmc.sync

In [28]: open("YK [tab]
YK.2003.2010,351.dmc.sync YK.2003.2012,13.dmc.sync YK.2003.2012,255.dmc.sync YK.2003.2012,257.dmc.sync YK_data_summary.txt
YK.2003.2012,12.dmc.sync YK.2003.2012,16.dmc.sync YK.2003.2012,256.dmc.sync YK.2003.2012,47.dmc.sync

In [28]: open("YK.2 [tab]
YK.2003.2010,351.dmc.sync YK.2003.2012,13.dmc.sync YK.2003.2012,255.dmc.sync YK.2003.2012,257.dmc.sync

YK.2003.2012,12.dmc.sync YK.2003.2012,16.dmc.sync YK.2003.2012,256.dmc.sync YK.2003.2012,47.dmc.sync

In [28]: open("YK.2003.2012 [tab]
YK.2003.2012,12.dmc.sync YK.2003.2012,16.dmc.sync YK.2003.2012,256.dmc.sync YK.2003.2012,47.dmc.sync

YK.2003.2012,13.dmc.sync YK.2003.2012,255.dmc.sync YK.2003.2012,257.dmc.sync

In [28]: open("YK.2003.2012, [tab]
Display all 280 possibilities? (y or n)

eep! I'd like to tab complete with the files with the comma

Many thanks,
Lloyd

@rmcgibbo

Unfortunately this is not really possible with readline, because the comma is a readline delimiter. This problem also effects filenames with spaces in them too.

@minrk minrk changed the title from tab completion fails with comma to tab completion fails with comma, space Nov 13, 2014
@minrk minrk removed the type-enhancement label Jan 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.