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

Implement hash tag completion #3196

Closed
wants to merge 3 commits into from

Conversation

orekyuu
Copy link

@orekyuu orekyuu commented May 21, 2017

This PR implements completion of hashtags.
The tooted hashtag is included in the candidate.
Candidates are stored localStorage.

2017-05-21 15 23 35

Copy link
Contributor

@beatrix-bitrot beatrix-bitrot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall this is really cool and i like it!

return [null, null];
}

word = word.trim().toLowerCase().slice(1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove this?

will it make the matching case sensitive? do we want that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought the hashtag would distinguish between uppercase and lowercase letters.
I found it to be all lowercase so fixed it.

@ykzts
Copy link
Sponsor Member

ykzts commented May 28, 2017

resolve conflicts.

localStorage.setItem('hash_tag_history', data);
} catch (e) {
//ignore
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storing large amounts of data in LocalStorage is inefficient. I'd advise using IDB instead via a library like Dexie. You can also use it for range queries, meaning you don't need to constantly re-parse a big string of JSON and then search through it using JavaScript.

@akihikodaki akihikodaki added enhancement ui Front-end, design labels Jun 3, 2017
@ykzts
Copy link
Sponsor Member

ykzts commented Jun 13, 2017

@orekyuu ping

@Gargron
Copy link
Member

Gargron commented Sep 30, 2017

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Front-end, design
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants