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

[Bug] Edit mode, partial match, delete entry #6

Closed
the-c0d3r opened this issue May 26, 2020 · 0 comments
Closed

[Bug] Edit mode, partial match, delete entry #6

the-c0d3r opened this issue May 26, 2020 · 0 comments
Labels
bug Something isn't working
Projects

Comments

@the-c0d3r
Copy link
Owner

Database content

a : test
aa : test aa

User triggers dictdb -e a. This will call the editor with both words, as they are partial match.

Delete the second entry aa : test aa from the editor. Save and quit.

dictdb -l still contains aa entry. It should have been removed.

Implementation

When triggering edit, keep track of which words are matched and presented to the editor. When the editor is closed, compare the final vs the old, delete the entry that has been deleted from final.

@the-c0d3r the-c0d3r added the bug Something isn't working label May 26, 2020
@the-c0d3r the-c0d3r added this to To do in Dictdb May 26, 2020
@the-c0d3r the-c0d3r moved this from To do to In progress in Dictdb Nov 8, 2020
the-c0d3r added a commit that referenced this issue Nov 8, 2020
lib/controller.py: fixes #6
Dictdb automation moved this from In progress to Done Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Dictdb
  
Done
Development

No branches or pull requests

1 participant