-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
taskopen integration #110
Milestone
Comments
arcticicestudio
added a commit
that referenced
this issue
Sep 15, 2018
The management of installed Perl modules (1) on macOS is not as simple and well thought through like with package managers on Linux systems, e.g. via pacman (2) on Arch Linux (3). There are problems when is comes to configuring the runtime path the modules have been installed to even when using the most popular module manager called cpanminus (4). This causes the Taskwarrior (5) plugin taskopen (6) fail to load because the Perl core module `JSON` can't be found and loaded. As a workaround a custom script has been implemented to create and open a attached note of an task: 1. Used the `_get` (7) function of the Taskwarrior DOM API (8) to extract any stored piece of information of an task. This allows to receive the UUID of an task (9). 2. Created a custom `on` (open note) Taskwarrior alias (10) to run the implemented custom script via the `execute` command. The logic of the script follows the same like taskopen uses for default notes: * Using the UUID of an task (TODO) as the note filename. * Simply passing the file to an editor (in this case Atom (11)) which will… * …creates a new file if it doesn't exist yet. * …opens the file if it already exists. Note that this script is not limited to macOS but can also be used for any other Linux hosts! References: (1) http://www.cpan.org/modules (2) https://wiki.archlinux.org/index.php/Pacman (3) https://archlinux.org (4) https://github.com/miyagawa/cpanminus (5) https://taskwarrior.org (6) https://github.com/ValiValpas/taskopen (7) https://taskwarrior.org/docs/commands/_get.html (8) https://taskwarrior.org/docs/dom.html (9) https://taskwarrior.org/docs/ids.html (10) https://taskwarrior.org/docs/terminology.html#alias (11) https://atom.io Epic: #131 Related to #110 Closes GH-134
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add integration for taskopen by adding
.taskopenrc
configuration filean
) and open (o
) task notes / annotationsConfiguration
Core Plugins
clean
~
~/.task
link
taskopenrc
➡️~/.taskopenrc
taskopenrc
➡️~/.taskopenrc
The text was updated successfully, but these errors were encountered: