From a9cc8c297abee027287e801e15137b143dc4adbf Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 20 Sep 2024 14:59:31 +0900 Subject: [PATCH] Dropping support for Taskwarrior temporeraly --- README.md | 2 +- calcure/__main__.py | 2 +- calcure/configuration.py | 2 +- calcure/controls.py | 10 +++++----- calcure/translations/en.py | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0c74213..47d69b8 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ There are several ways to install: `yay -S calcure` - [AUR package](https://aur.archlinux.org/packages/calcure) is available. Upvote to support the project! -`calcure` is also available as NixOS package (outdated). +`calcure` is also available as NixOS package. ### Windows diff --git a/calcure/__main__.py b/calcure/__main__.py index 8293785..4744ab6 100644 --- a/calcure/__main__.py +++ b/calcure/__main__.py @@ -46,7 +46,7 @@ from calcure.translations.en import * -__version__ = "3.0.3" +__version__ = "3.1" def read_items_from_user_arguments(screen, user_tasks, user_events, task_saver_csv, event_saver_csv): diff --git a/calcure/configuration.py b/calcure/configuration.py index e1e8a76..97ba53f 100644 --- a/calcure/configuration.py +++ b/calcure/configuration.py @@ -365,7 +365,7 @@ def read_parameters_from_user_arguments(self): self.DEFAULT_VIEW = AppState.HELP elif opt in ('-v'): self.DEFAULT_VIEW = AppState.EXIT - print ('Calcure - version 3.0.1') + print ('Calcure - version 3.1') elif opt in ('-i'): self.USE_PERSIAN_CALENDAR = True except getopt.GetoptError as e_message: diff --git a/calcure/controls.py b/calcure/controls.py index 850bda1..2c7b6a6 100644 --- a/calcure/controls.py +++ b/calcure/controls.py @@ -513,11 +513,11 @@ def control_journal_screen(stdscr, screen, user_tasks, importer): if confirmed: importer.import_tasks_from_calcurse() screen.refresh_now = True - if screen.key == "W": - confirmed = ask_confirmation(stdscr, MSG_TS_TW, cf.ASK_CONFIRMATIONS) - if confirmed: - importer.import_tasks_from_taskwarrior() - screen.refresh_now = True + # if screen.key == "W": + # confirmed = ask_confirmation(stdscr, MSG_TS_TW, cf.ASK_CONFIRMATIONS) + # if confirmed: + # importer.import_tasks_from_taskwarrior() + # screen.refresh_now = True # Reload: if screen.key in ["Q"]: diff --git a/calcure/translations/en.py b/calcure/translations/en.py index a52d605..5efc3e5 100644 --- a/calcure/translations/en.py +++ b/calcure/translations/en.py @@ -49,7 +49,7 @@ " . ": "Toggle task privacy", " f(F) ": "Change (remove) task deadline", " m ": "Move a task", - " C(W) ": "Import tasks from calcurse (taskwarrior)", + # " C(W) ": "Import tasks from calcurse (taskwarrior)", } MSG_NAME = "CALCURE"