⚙️ Commands¶
add¶
Add a task to the current working day. You can add a simple task or a task with details. If you want to add a task with details, you can use the -d option. If you want to add a task with multiple lines details, you can use the -d - option, Hyperfocus will open your default editor to write the details.
Usage:
hyf add [OPTIONS] <title>
<title> The title description of your task.
Options:
-d,--detailsAllows to add some details to the task.-b,--bulkOpen the editor and allows to add multiple tasks at once by writing one title per line. Note that you won’t be able to fill details with the bulk mode.-h,--helpCommand help.
Examples:
hyf add "Call John Doe."
hyf add "Read an article about cats" -d "https://catsfunfacts.pet"
hyf add "Do something with a lot of details" -d -
hyf add --bulk
# In the editor write one task per line
Call John Doe
Read some articles about dogs
config¶
Manage Hyperfocus configuration. It is currently exclusively meant to set up aliases, see the examples below.
Usage:
hyf config [OPTIONS] <option> <value>
<option> The option you want to set up within the config. It must follow this format:
section.key.<value> The value to set to the given field.
Options:
--unsetUnset an option from the config.--listShow the whole config.-h,--helpCommand help.
Examples:
hyf config alias.del delete
hyf config --list
copy¶
Copy task details into clipboard.
Usage:
hyf copy [OPTIONS] <id>
<id> The task id which you want to copy the details from.
Options:
-h,--helpCommand help.
Example:
hyf copy 3
delete¶
Delete one or more tasks from the current day. Hyperfocus uses soft deletion by default, if you are sure you want to remove a task, you need to use the –force option.
Usage:
hyf delete [OPTIONS] <id>
<id> The id of the task you want to delete. If you don’t remember the id of the task, leave it empty, Hyperfocus will display you a little reminder.
Options:
-f,--forceForce a task deletion-h,--helpCommand help.
Examples:
hyf delete 3
hyf delete 3 4
hyf delete 3 --force
done¶
Mark a task as done from the current working day.
Usage:
hyf done [OPTIONS] <id>
<id> The id of the task you want to mark ad done. If you don’t remember the id of the task, leave it empty, Hyperfocus will display you a little reminder.
Options:
-h,--helpCommand help.
Examples:
hyf done 3
hyf done 3 4
edit¶
Edit a task from the current working day. You can edit the title and the details of a task. If you want to edit only one attribute, you can use -t option for the title or -d option for the details. Note that only the details can contains multiple lines, if you edit the title with multiple lines, line breaks will be automatically removed.
Usage:
hyf edit [OPTIONS] <id>
<id> The id of the task you want to edit. If you don’t remember the id of the task, leave it empty, Hyperfocus will display you a little reminder.
Options:
-t,--titleEdit the title of the task only.-d,--detailsEdit the details of the task only.-h,--helpCommand help.
Example:
hyf edit 3
hyf edit 3 4
hyf edit --title 3
init¶
Initialize Hyperfocus config and database. This command is mandatory if you want to be able to use Hyperfocus. It can also be used as a reset.
Usage:
hyf init [OPTIONS]
Options:
-h,--helpCommand help.
log¶
Show the whole tasks history.
Usage:
hyf log [OPTIONS]
Options:
-h,--helpCommand help.
reset¶
Reset a task status. Reset task will be set to TODO.
Usage:
hyf reset [OPTIONS] <id>
<id> The id of the task you want to reset.
Options:
-h,--helpCommand help.
Examples:
hyf reset 1
hyf reset 1 2
show¶
Show a task in detail with its history.
Usage:
hyf show [OPTIONS] <id>
<id> The id of the task you want to show.
Options:
-h,--helpCommand help.
Example:
hyf show
stash¶
Postpone a task by saving it for later.
stash apply¶
Pop all the stashed tasks to the current working day.
Usage:
hyf stash apply [OPTIONS]
Options:
-h,--helpCommand help.
stash clear¶
Cleared the stashed tasks. All the removed tasks will be deleted.
Usage:
hyf stash clear [OPTIONS]
Options:
-h,--helpCommand help.
stash list¶
List all the stashed tasks.
Usage:
hyf stash list [OPTIONS]
Options:
-h,--helpCommand help.
stash pop¶
Pop a stashed task into the current working day.
Usage:
hyf stash pop [OPTIONS] <id>
<id> The id of the stashed task you want to pop.
Options:
-h,--helpCommand help.
stash push¶
Push a task from the current working day into the stashed list.
Usage:
hyf stash push [OPTIONS] <id>
<id> The id of the task you want to stash.
Options:
-h,--helpCommand help.
status¶
Show Hyperfocus current working day status. This is the default command called when calling hyf.
Usage:
hyf status
Options:
-h,--helpCommand help.
Examples:
hyf status
hyf