Comments (4)
I'd be more than happy to address this in a PR if you can decide on the solution @perry-mitchell
from buttercup-core.
This is a very interesting topic.. I definitely agree that we need to add this functionality.
The reason I had not exposed the searching tools is because they operate on the composed, raw JSON data behind the archive (searching commands don't return ManagedGroup or ManagedEntry instances). For this reason, I'd like to keep it hidden for now.
What are your thoughts on having a couple of Archive-level functions like findGroups
and findEntries
? We'd need to figure our exactly how the methods would work, as groups have just a title, but entries have properties and meta.
What about:
findGroupsByTitle(title)
- Searches for groups that containtitle
findEntriesByProperty(propName, value)
findEntriesByMeta(metaName, value)
That way we could search by several different aspects - This could be used in the GUI's search field at some stage in the future too. Perhaps returning an array of matched items would be better too, as you could just Array.shift()
them to get the first.
from buttercup-core.
I might take this @Jameskmonger if you're on other items. Would like to get this out this week :)
from buttercup-core.
Feel free @perry-mitchell.
I agree that the best solution would be to return an array of matching items rather than the first, and then letting the user work with those.
from buttercup-core.
Related Issues (20)
- OneDrive webdav access HOT 2
- 3rd Party Audit? HOT 3
- How to Decrypt Vault _Without_ Buttercup? HOT 4
- 🦕 Deno Support? HOT 3
- Buttercup self-hosted server HOT 1
- Android: CVV of bank card not censored HOT 1
- Lost recovery phrase HOT 1
- Do Not Import Empty Custom Fields from CSV HOT 1
- Recovery Codes field type HOT 1
- Link to another entry (or alias entry) HOT 1
- Format B merging ignores entry parent sometimes
- Google Drive expired tokens result in 401 errors HOT 1
- Master password change?
- Increase key derivation PBKDF2-HMAC-SHA256 iterations to safer value HOT 13
- Sample vault reading code in README.md does not work as suggested in NodeJS. HOT 1
- Unable to save new entries in vault - Error 423 HOT 2
- Compatibility with Commonjs (oclif) HOT 3
- bug report: unable to empty trash HOT 9
- Unable to save historical Format B vaults
- Probleme mit WEBDAV HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buttercup-core.