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

substitute pkg_resources with importlib_metadata #212

Closed
wants to merge 6 commits into from
Closed

substitute pkg_resources with importlib_metadata #212

wants to merge 6 commits into from

Conversation

beuerle
Copy link
Contributor

@beuerle beuerle commented Mar 20, 2019

This PR fixes #183.

fixes #167

Previously, the correct parent assignment for tasks only worked if
expandtab was set in vim: if the task currently checked did not start
with the indentation of the new task, the current line was assigned as
the parent. taskwiki uses spaces for indentation, with a fixed length of
4 [0]. If vim is set to use tabs instead of spaces, the checked line
does not start with tabs and is assigned the parent, even if the
actually indentation is the same.

Especially hard-coding the number of spaces for the indentation should
maybe be fixed in the future.

[0]
https://github.com/tbabej/taskwiki/blob/0c964460e6bbfba387b8a2976a3c349aa615e525/taskwiki/sort.py#L170
@beuerle beuerle closed this Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

taskwiki fails with AttributeError: module 'vim' has no attribute 'find_module'
1 participant