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

Special characters in entry does not work #12

Open
chrisbergs opened this issue Mar 14, 2022 · 1 comment
Open

Special characters in entry does not work #12

chrisbergs opened this issue Mar 14, 2022 · 1 comment

Comments

@chrisbergs
Copy link

Used & and / which resulted in no password copied from entry.

@leaty
Copy link
Owner

leaty commented Mar 27, 2022

This is because entries are merged with parents using / for outputting to a stdin capable program, then split again by / when accessing the keepass database for clipping.

Node::Entry(e) => list.push(format!("{}{}", parents, e.get_title().unwrap_or(""))),
Node::Group(g) => build_list(list, &g, format!("{}{}/", parents, g.name)),

.get(&entry.split("/").collect::<Vec<&str>>())

This can be fixed by e.g. storing entries as Vec<Vec<String>> and a map with the merged key referencing the entry instead. Let me know if you want to give it a shot, otherwise I'll probably find some time for it.

& works just fine however.

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

No branches or pull requests

2 participants