Feature - default alias

- Added a default alias of "rm" as a synonym of "delete" (thanks to
  Ivo Jimenez).
This commit is contained in:
Paul Beckingham 2009-11-05 01:08:54 -05:00
parent bf077c0f97
commit e222090d1f
3 changed files with 7 additions and 0 deletions

View file

@ -39,3 +39,5 @@ Thanks to the following, who submitted detailed bug reports and excellent sugges
Thomas@BIC
Ian Mortimer
Zach Frazier
Ivo Jimenez

View file

@ -4,6 +4,7 @@
1.9.0 ()
+ Added feature #292 that permits alternate line coloration in reports
(thanks to Richard Querin).
+ The 'delete' command is now aliased to 'rm' (thanks to Ivo Jimenez).
------ old releases ------------------------------

View file

@ -150,6 +150,8 @@ void Config::createDefaultRC (const std::string& rc, const std::string& data)
<< "#default.priority=M # Unless otherwise specified\n"
<< "default.command=list # Unless otherwise specified\n"
<< "\n"
<< "alias.rm=delete\n"
<< "\n"
<< "# Fields: id,uuid,project,priority,entry,start,due,recur,recur_ind,age,\n"
<< "# age_compact,active,tags,description,description_only\n"
<< "# Description: This report is ...\n"
@ -323,6 +325,8 @@ void Config::setDefaults ()
set ("report.next.labels", "ID,Project,Pri,Due,Active,Age,Description"); // TODO i18n
set ("report.next.sort", "due+,priority-,project+"); // TODO i18n
set ("report.next.filter", "status:pending"); // TODO i18n
set ("alias.rm", "delete"); // TODO i18n
}
////////////////////////////////////////////////////////////////////////////////