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

Support searching account name, too #167

Open
kgrossjo opened this issue Aug 13, 2024 · 1 comment
Open

Support searching account name, too #167

kgrossjo opened this issue Aug 13, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@kgrossjo
Copy link

I have multiple email accounts, and the most common use for switching folders is to switch to the corresponding inbox folder. But I have not found a way to include the account name in the search string.

I even made my account names really short (E, G, S, X are the shortest ones) and I was hoping to be able to enter something like g/i or g inb or inb g or inb/g to go to the inbox folder of the G account.

I have nine accounts and so the current way to go is to enter something like inb and then hit cursor down the right number of times (which will be a different number of times each time).

@kewisch kewisch added enhancement New feature or request good first issue Good for newcomers labels Aug 21, 2024
@kewisch
Copy link
Owner

kewisch commented Aug 21, 2024

This sounds useful, maybe with an option to turn on/off.

if (lowerSearchTerm) {
let searchWords = lowerSearchTerm.split(/\s+/);
for (let item of this.allItems) {
let itemText = this.getItemText(item).toLowerCase();
let mismatch = false;
for (let word of searchWords) {
if (word && !itemText.includes(word)) {
mismatch = true;
break;
}
}
is a good place to start looking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants