[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tab completion and ':'s
From: |
Vadim Berezniker |
Subject: |
Tab completion and ':'s |
Date: |
Fri, 14 Nov 2014 03:07:51 +0000 |
I'm working on adding tab completion to an application that deals with
URLs, among other things. Since readline includes ':' as a delimiting
character, it causes minor annoyances with tab-completing URLs. There's the
known workaround of removing ':' from COMP_WORDBREAKS, but that requires
every person that installs the application to apply the workaround, which
is slightly less than ideal.
I'm trying to see if there's a better solution that doesn't require any
action from the user. One thought I had was what if readline/bash allowed
control over the insertion point of the completion result? i.e. if there
was a COMP_INSERT_POINT variable that could get/set the insertion point. Is
that feasible?
- Tab completion and ':'s,
Vadim Berezniker <=