Comments (9)
@sanjayankur31 You may give this another try with the version currently in the repository
from timewarrior.
Thanks, will do and report back.
from timewarrior.
Downgrading to 1.6.0 gets things working again.
from timewarrior.
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.
@sanjayankur31 What do your tags look like? Do you have (a lot of) tags containing spaces?
from timewarrior.
@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.
Hi @lauft : please do let me know if there's anything else I can do to help debug this one. Cheers.
from timewarrior.
Sorry for the delay, that does look like it fixes it here. Thanks very much 👍
from timewarrior.
Thanks for the feedback.
from timewarrior.
Related Issues (20)
- internal parsing of tags starting with number broken HOT 1
- Retrieval of intervals with tags containing hyphens is broken HOT 3
- Entries with accentuated characters not showing up in charts
- Assertion `is_open () || end >= start HOT 4
- changed hook to only transfer project name from task warrior to timewarrior. HOT 1
- [Question] How to specify database directory? HOT 2
- 'daily' not allowed as tag HOT 2
- Tags with special characters (e.g. `+`, `-`) do not apply tag coloring for `tags.<Tag>.color`
- Deleting tags.data and undo.data (question)
- using week numbers accounts Sunday through Saturday, not Monday through Sunday
- Add retag command to internal help HOT 2
- No active tracking after start HOT 4
- Segfaults: Can't modify entry left running overnight/can't continue using ID HOT 3
- Docs for summary and hints do not include the :annotations hint
- Support :annotations hint for timew command
- Timewarrior 1.7.1 Linux built from source no help or man pages HOT 1
- Tag order in CLI arguments is not preserved HOT 3
- Reference ids without at symbol (@)
- Modify both start and end time in same command?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timewarrior.