mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
A3t
- Tags attributes as MODIFIABLE.
This commit is contained in:
parent
194db8634e
commit
c0ed08e5e2
2 changed files with 13 additions and 4 deletions
13
src/A3t.cpp
13
src/A3t.cpp
|
@ -551,12 +551,18 @@ void A3t::findAttribute ()
|
|||
(*i)->tag ("ATTRIBUTE");
|
||||
(*i)->attribute ("name", canonical);
|
||||
(*i)->attribute ("value", value);
|
||||
|
||||
if (context.columns[canonical]->modifiable ())
|
||||
(*i)->tag ("MODIFIABLE");
|
||||
}
|
||||
|
||||
if (canonicalize (canonical, "uda", name))
|
||||
else if (canonicalize (canonical, "uda", name))
|
||||
{
|
||||
(*i)->tag ("UDA");
|
||||
(*i)->tag ("MODIFIABLE");
|
||||
}
|
||||
|
||||
if (canonicalize (canonical, "pseudo", name))
|
||||
else if (canonicalize (canonical, "pseudo", name))
|
||||
{
|
||||
(*i)->unTag ("?");
|
||||
(*i)->tag ("PSEUDO");
|
||||
|
@ -617,6 +623,9 @@ void A3t::findAttributeModifier ()
|
|||
(*i)->attribute ("value", value);
|
||||
(*i)->attribute ("modifier", modifier);
|
||||
(*i)->attribute ("sense", sense);
|
||||
|
||||
if (context.columns[canonical]->modifiable ())
|
||||
(*i)->tag ("MODIFIABLE");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -173,6 +173,8 @@ int Context::initialize (int argc, const char** argv)
|
|||
// TODO Entities: Write commands.
|
||||
// TODO Entities: Special commands.
|
||||
// TODO Entities: Helper commands.
|
||||
|
||||
// TODO Need: bool Command::report() - maybe not.
|
||||
}
|
||||
|
||||
// Instantiate built-in column objects.
|
||||
|
@ -184,8 +186,6 @@ int Context::initialize (int argc, const char** argv)
|
|||
// Entities: Pseudo-attributes.
|
||||
a3t.entity ("pseudo", "limit");
|
||||
|
||||
// TODO Entities: UDAs.
|
||||
|
||||
// Entities: Modifiers.
|
||||
for (unsigned int i = 0; i < NUM_MODIFIER_NAMES; ++i)
|
||||
a3t.entity ("modifier", modifierNames[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue