Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Context & Project choices should be case-insensitive #114

Closed
ginatrapani opened this issue Jan 19, 2012 · 7 comments · Fixed by #209
Closed

Context & Project choices should be case-insensitive #114

ginatrapani opened this issue Jan 19, 2012 · 7 comments · Fixed by #209
Labels
Milestone

Comments

@ginatrapani
Copy link
Member

Right now if I have an @Phone and an @phone context in my todo.txt, they get listed individually in the context picker. The picker should collapse contexts into one where the only difference is case.

@marsepu
Copy link

marsepu commented Jul 7, 2012

a simple way to fix this is to only add the lowercase version of each context to the picker. Would this be an OK fix for you? It's a simple patch that I have already banged out if you want it.

@ginatrapani
Copy link
Member Author

Yes, please send on the pull request so I can test out the fix. Thank you!
On Jul 6, 2012 9:09 PM, "Mario Sepulveda" <
[email protected]>
wrote:

a simple way to fix this is to only add the lowercase version of each
context to the picker. Would this be an OK fix for you? It's a simple patch
that I have already banged out if you want it.


Reply to this email directly or view it on GitHub:

#114 (comment)

marsepu added a commit to marsepu/todo.txt-touch-ios that referenced this issue Jul 10, 2012
@chuckbjones
Copy link
Contributor

@marsepu, can you send a pull request for this one as well? Thanks

@marsepu
Copy link

marsepu commented Jul 23, 2012

Charles,

I sent a pull request for this over a week ago.

-Mario

Sent from my iPhone

On Jul 23, 2012, at 12:58 AM, Charles Jones [email protected] wrote:

@marsepu, can you send a pull request for this one as well? Thanks


Reply to this email directly or view it on GitHub:
#114 (comment)

@chuckbjones
Copy link
Contributor

@ginatrapani This is another one that looks like it was never applied.

@ginatrapani
Copy link
Member Author

When I went to apply this locally, there was a conflict:

<<<<<<< HEAD
        [projects addObject:[[inputText substringWithRange:[match rangeAtIndex:1]] stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]];
=======
    NSString* theProjectInLowercase = [[inputText substringWithRange:[match rangeAtIndex:1]] lowercaseString];
        [projects addObject:theProjectInLowercase];
>>>>>>> d2c10de... Fixed issue #114  - Context & Project choices should be case-insensitive

I want to get the resolution right. I shouldn't delete stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]] but I'm not confident about the right way to merge these changes.

@chuckbjones
Copy link
Contributor

I'm not sure why it's trimming whitespace in the first place, but I just sent a new PR that maintains it.

ginatrapani added a commit that referenced this issue Oct 31, 2013
…s-contexts

Make projects and contexts case insensitive, closes #114
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants