Comments (4)
Sounds doable! Let me quickly check I've understood your request.
Current Behaviour
A search for example
returns results if either the contact's email or their name matches.
$ ppl mutt example
[email protected] John Doe
[email protected] example user
Desired Behaviour
The same search only returns results when the email address matches.
$ ppl mutt --emails-only example
[email protected] John Doe
This is definitely a tweak I can make for you. For the sake of backwards compatibility, I'll add it under a --emails-only
flag on the ppl mutt
command though. Don't wanna break things for people! :)
from ppl.
Thank your for your quick reply. Sorry, I think I was mixing something up because the search is case-sensitive and I did not know that. So I guess this turns into two ›issues‹:
- The
.vcf
file name is not searched. (which is the original issue) - Why is the search case-sensitive?
A contact's name and its email is searched but not the name of the .vcf
file. Sometimes I am using this for a nickname for example mum.vcf
or dad.vcf
. So it would be great if the search also considers file names. (Of course, I can also change my behaviour in naming the files.)
Have a look at this example for clarification:
# niklaas at len-x61s in ~ [16:31:55]
$ ppl ls | grep username
username: FirstName Surname <[email protected]>
If I query for username
I get no results. (Maybe this is intended but I would find it handy.)
If I query for surname
I get no results. I think this is not really useful.
If I query for Surname
I get a result (of course).
from ppl.
you can get a case insensitive search with ppl grep -i username
from ppl.
Wow oops, I've really let some old issues rot here. Gonna close this one as it looks like that workaround is okay!
from ppl.
Related Issues (20)
- include ppl edit <any-identifier> HOT 1
- Bash completion needs to escape shell tokens HOT 1
- Some questions about features and refactoring HOT 4
- Convert to use the vcard gem HOT 3
- Add support for the KIND field HOT 1
- Add support for the RELATED field HOT 1
- Add support for the NOTE field HOT 1
- Test out using the Thor gem for the CLI HOT 1
- Add more code quality tools and their badges HOT 5
- setting nickname erases name details in the vcard HOT 6
- autocomplete fails when it encounters invalid dates in the data set HOT 2
- ppl is destructively intolerant of tags it doesn't recognize HOT 1
- Colorized and aligned custom address book format HOT 1
- Not sure if Ruby version checking is doing the intended thing HOT 2
- Undo "ppl init" HOT 3
- create brew install HOT 1
- Mac/iOS integration HOT 1
- Windows OS Support HOT 1
- Strange error about "undefined method `version' for nil:NilClass (NoMethodError)" HOT 2
- ERROR: Failed to build gem native extension. HOT 3
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 ppl.