Skip to content
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 workaround support for macOS #134

Closed
arcticicestudio opened this issue Sep 15, 2018 · 0 comments
Closed

taskopen workaround support for macOS #134

arcticicestudio opened this issue Sep 15, 2018 · 0 comments

Comments

@arcticicestudio
Copy link
Owner

arcticicestudio commented Sep 15, 2018

Epic: #131
Related to #110

The management of installed Perl modules on macOS is not as simple and well thought through like with package managers on Linux systems, e.g. via pacman on Arch Linux. 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. This causes the Taskwarrior plugin taskopen fail to load because the Perl core module JSON can't be found and loaded.

As a workaround a custom script should be implemented to create and open a attached note of an task:

  1. Use the _get function of the Taskwarrior DOM API to extract any stored piece of information of an task. This allows to receive the UUID of an task.
  2. Create a custom on (open note) Taskwarrior alias to run the implemented custom script via the execute command.

The logic of the script should follow the same like taskopen uses for default notes:

  • Use the UUID of an task as the note filename.
  • Simply pass the file to an editor (in this case Atom) which will…
    • …create a new file if it doesn't exist yet.
    • …open the file if it already exists.

Note that this script is not limited to macOS but can also be used for any other Linux host! It is only necessary to use it on macOS due to the problems described above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant