cs2103aug2014-w13-2j / main

To-Do list program for CS2103T @ NUS
MIT License
1 stars 0 forks source link

[Language] Customizable Functions #27

Closed XYLau closed 10 years ago

XYLau commented 10 years ago

As a power user, I want to be able to perform customised actions in a single step (in the form of alias) so that I can deal with events/tasks that require many customised options without having to go through multiple single update steps.

ZiXian92 commented 10 years ago

To be implemented as adding new command keywords for existing commands to dictionary. Should the new keywords be volatile(have to set alias on each run) or persistent(implies read/write from/to file)?

nhan-ng commented 10 years ago

It is better for the added customised commands to be persistent. Hence, we will maintain a dictionary of customised commands.

For example, abmoT := add buy milk next Thursday LsToday-p := list on today orderby priority LsTod := list on today

So for frequent commands, the user can just customise them into short commands to save the typing

ZiXian92 commented 10 years ago

If it is to be persistent across executions(aliases remain valid even after user restarts the program), then you might have to do some file I/O in the Parser to save/load the aliases.

nhan-ng commented 10 years ago

Duplicate of #98