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

add printing of id after adding a task #21

Merged
merged 1 commit into from
Apr 11, 2020
Merged

add printing of id after adding a task #21

merged 1 commit into from
Apr 11, 2020

Conversation

brennerm
Copy link
Contributor

Implements the feature requested in #20.

@Gasman2014
Copy link

Could I suggest that

print(task_id[:6])

(or, perhaps an even smaller number) is more user friendly?

Generally the number of items in the todo list is a few tens of items at most. I would think that the risk of an SHA collision is very small and the display of the complete hash is unnecessarily complex. It might lead people to think they have to type the complete string to remove an item which might be alienating.

BTW Thanks @sjl for a nice, simple tool.

@brennerm
Copy link
Contributor Author

Changed it to printing the shortest prefix.

@sjl sjl merged commit d23ce12 into sjl:master Apr 11, 2020
@sjl
Copy link
Owner

sjl commented Apr 11, 2020

Merged, and also made it respect --quiet and --verbose.

tllilleh pushed a commit to tllilleh/t that referenced this pull request May 21, 2021
add printing of id after adding a task
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.

3 participants