Giter VIP home page Giter VIP logo

Comments (9)

lauft avatar lauft commented on August 24, 2024 1

@sanjayankur31 You may give this another try with the version currently in the repository

from timewarrior.

sanjayankur31 avatar sanjayankur31 commented on August 24, 2024 1

Thanks, will do and report back.

from timewarrior.

sanjayankur31 avatar sanjayankur31 commented on August 24, 2024

Downgrading to 1.6.0 gets things working again.

from timewarrior.

sanjayankur31 avatar sanjayankur31 commented on August 24, 2024

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 timew tags .. returned tags on individual lines, but the new dom system does not:

$ timew tags | tail -n +4 -- | sed -e "s|[[:space:]]*-$||"
DEI
abstract
admin
agenda
...

vs

$ timew get dom.tracked.tags "${TIMEW_COMPLETION_TAGS_RANGE:-":all"}"
DEI abstract admin ...

So the wordlist variable later where __get_tags is used is different now:

#! /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:

$ ./test.sh 
** Before, wordlist was:
DEI
** Now, wordlist is:
DEI abstract admin agenda ...

from timewarrior.

lauft avatar lauft commented on August 24, 2024

@sanjayankur31 What do your tags look like? Do you have (a lot of) tags containing spaces?

from timewarrior.

sanjayankur31 avatar sanjayankur31 commented on August 24, 2024

@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 timew get dom.tracked.tags with a few personal ones removed:

DEI abstract admin agenda appstream arbor arc atas awayday back-end bank bash bbsrc biosciences bookings bucket budget call calliope car career career-development cbt cerebellum citizenship claims clarity cloud-harness cns2022 cns2023 code coffee-break collaboration combine community commute conference conferences cortexclub coursework covid cybsafe czi dandi dataclub datalad debugging dendrify departmental deploy dinner dissemination diversity docs documentation e-i-balance eden editing editors eduroam elephant elife elifepaper email emails errand errands estates expense-claim expenses fedora feedback "festival of post docs" forum forums foss foss.fedora foss.fedora.neuro frontiers git github google-deepmind grant gsoc gym haircut harmony health hed-tools hh highfive hl23 housekeeping human "ih_project" incf issues jlems job job.ucl.cortexclub job.ucl.dataclub job.ucl.neuroml job.ucl.neuroml.agenda job.ucl.neuroml.elifepaper job.ucl.neuroml.hl23 job.ucl.neuroml.l23model join join-sig journal jupyter kavli kitchen l23 l23-hay l23model l5pc lab-tour lems lessons libneuroml libsonata lit literature lunch matlab matrix matrix-nio matteo mdf meditation meeting meetings mentoring metacell migration misc modeci modelling modelspec nest netpyne netpyne-ui neuro neurodatashare neurofedora neuroinformatics neuroml neuroml2 neuromllite news newsboat next npp nsg nwb nwb-explorer nwbexplorer ocns octave omv osb osb-status osbv1 osbv2 outreachy package packages packaging pagure paper personal phone pint-of-science planning poster presentation professional-development programming project public-engagement publication publishing pyelectro pyneuroml python react reading recycling redux research research.conferences.cns2023 research.lit.bucket research.lit.next research.reviews.dinkelbach2022 research.volunteering.softwarewg rest review reviews rpmfusion rpmlint rsS rss safety-induction sbml scripting seminar seminars service sick-leave simselect single-neuron skinnerlab slack softwarewg sprint strp structural-plasticity student students supervision survey swc talk taskforce taskreview teaching "teaching for postdocs" tech-fix timew to-skim training tutorial tvb uc ucl ucu updates upgrade upgrades vim vispy volunteering website welcome-to-fedora wellcome willow workout writing 

from timewarrior.

sanjayankur31 avatar sanjayankur31 commented on August 24, 2024

Hi @lauft : please do let me know if there's anything else I can do to help debug this one. Cheers.

from timewarrior.

sanjayankur31 avatar sanjayankur31 commented on August 24, 2024

Sorry for the delay, that does look like it fixes it here. Thanks very much 👍

from timewarrior.

lauft avatar lauft commented on August 24, 2024

Thanks for the feedback.

from timewarrior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.