-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ask for confirmation before deleting
- Loading branch information
Showing
9 changed files
with
98 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
You can permanently delete a task by pressing `<ctrl+x>`. This will put omm in | ||
an "awaiting confirmation" mode, where you can press `<ctrl+x>` again to proceed | ||
with the deletion, or press any other key to cancel it. | ||
|
||
This is omm's default behaviour. If you'd rather omm not ask for confirmation, | ||
you can set the `--confirm-before-deletion` flag to `false`. | ||
|
||
Go ahead, create a test task, and permanently delete it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
Here's a sample TOML configuration file: | ||
|
||
```toml | ||
db_path = "~/.local/share/omm/omm-w.db" | ||
tl_color = "#b8bb26" | ||
atl_color = "#fabd2f" | ||
title = "work" | ||
list_density = "spacious" | ||
show_context = false | ||
editor = "vi -u NONE" | ||
db_path = "~/.local/share/omm/omm-w.db" | ||
tl_color = "#b8bb26" | ||
atl_color = "#fabd2f" | ||
title = "work" | ||
list_density = "spacious" | ||
show_context = false | ||
editor = "vi -u NONE" | ||
confirm_before_deletion = false | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,5 @@ type Config struct { | |
Guide bool | ||
DBPath string | ||
ShowContext bool | ||
ConfirmBeforeDeletion bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters