-
Notifications
You must be signed in to change notification settings - Fork 96
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
Adds TaskWikiOpen command #270
base: master
Are you sure you want to change the base?
Conversation
b549521
to
36652d1
Compare
This PR is in a first candidate state. I couldn't think of a way to test the two new commands, any help would be great if you think they are needed. I also decided to add a new config option instead of parsing the taskopenrc. To parse the taskopenrc, it can be loaded as an ini file and the relevant option can be extracted. But I thought this was more convoluted. |
1b236f1
to
81b2d19
Compare
I managed to add some tests for the new commands. However, I cannot think of a way to add a test that checks if @liskin Would you happen to have some insight to share? |
Overriding PATH and using a dummy xdg-open that does something we can later check comes to mind. |
I just came up with a much better solution to the note problems. TaskWikiOpen can use sth like:
to read the file that taskopen would open as the note. Then, it can simply edit the file in the current vim. |
What is the status of this? |
I will address the comments and make this PR more proper soon. |
For what it's worth, I think this is a worthy addition to taskwiki and I'd be happy merging this once the MR is ready. |
I've hacked together a solution here for using taskopen with taskwiki: #386 I've been using it about a week. Not sure if it's useful or not to your efforts but it may be worth looking at. |
ee1be31
to
4d8d40a
Compare
I completely rewrote the commands, it was much more involved than expected. I removed the old tests, I need to write more. Is there any comment? |
I had a look, the PR generally looks OK. I do wish that styling changes were at least a separate commit though, looks like black auto-formatted that one file you were editing there 🙂 |
Ooops, you are right... I will revert them back. |
Co-authored-by: Tomas Babej <tomas@tbabej.com>
Can I suggest adding a feature to turn this feature off (and have it on by default). |
Do you want to keep the mappings clean? What is the use case? |
@nkakouros I rolled my own solution for using taskopen. I guess I could change my map. |
This is currently on hold until the test suite is fixed. |
Any ETA on this? |
#429 and free time are blocking this. |
This addresses #262.