-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bash completion of tags broken since 1.7.0 #581
Comments
Downgrading to 1.6.0 gets things working again. |
The diff b/w the two bash completions is quite straightforward for this bit: @@ -42,7 +42,7 @@
function __get_tags()
{
- timew tags | tail -n +4 -- | sed -e "s|[[:space:]]*-$||"
+ timew get dom.tracked.tags "${TIMEW_COMPLETION_TAGS_RANGE:-":all"}"
}
function __get_extensions() The two commands don't return the same information though. The previous
vs
So the #! /bin/bash
# test.sh
function __get_tags()
{
timew tags | tail -n +4 -- | sed -e "s|[[:space:]]*-$||"
}
declare -a wordlist
while IFS=$'\n' read -r line ; do
wordlist+=( "${line}" )
done <<< "$( __get_tags )"
echo "** Before, wordlist was:
echo $wordlist
function __get_tags_new()
{
timew get dom.tracked.tags "${TIMEW_COMPLETION_TAGS_RANGE:-":all"}"
}
declare -a wordlist1
while IFS=$'\n' read -r line ; do
wordlist1+=( "${line}" )
done <<< "$( __get_tags_new )"
echo "** Now, wordlist is:
echo $wordlist1
gives:
|
@sanjayankur31 What do your tags look like? Do you have (a lot of) tags containing spaces? |
No, I only have a few tags that have spaces in them. All the rest are single words (often hyphenated). Here's the output of
|
Hi @lauft : please do let me know if there's anything else I can do to help debug this one. Cheers. |
@sanjayankur31 You may give this another try with the version currently in the repository |
Thanks, will do and report back. |
Sorry for the delay, that does look like it fixes it here. Thanks very much 👍 |
Thanks for the feedback. |
We've just updated timew to 1.7.0 in Fedora. Now, my bash completion seems to be broken. For example, if I go:
I just get all my tags:
This isn't useful, and did not happen previously. Completion of individual tags does not work either:
does nothing, previously, it would have completed to
job
and so on.The text was updated successfully, but these errors were encountered: