-
-
Notifications
You must be signed in to change notification settings - Fork 829
😄 Emoji autocomplete and unicode emoji to image conversion using emojione. #255
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ var CallHandler = require('../../CallHandler'); | |
var TabComplete = require("../../TabComplete"); | ||
var MemberEntry = require("../../TabCompleteEntries").MemberEntry; | ||
var CommandEntry = require("../../TabCompleteEntries").CommandEntry; | ||
var EmojiEntry = require("../../TabCompleteEntries").EmojiEntry; | ||
var Resend = require("../../Resend"); | ||
var SlashCommands = require("../../SlashCommands"); | ||
var dis = require("../../dispatcher"); | ||
|
@@ -469,7 +470,7 @@ module.exports = React.createClass({ | |
this.tabComplete.setCompletionList( | ||
MemberEntry.fromMemberList(members).concat( | ||
CommandEntry.fromCommands(SlashCommands.getCommandList()) | ||
) | ||
).concat(EmojiEntry.entries) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm. Slightly scared about the perf/UX impact of appending eeeeevery emoji ever to the tab complete list all the time - mainly in terms of the CPU required to filter down the list once you start filtering. I wonder if we should only be adding it in as an option in the special case of the user hitting a colon? I haven't played with it in anger yet, but definitely worth keeping an eye on CPU... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my tests it worked well enough (that I actually used it myself for quite a while), but if we notice issues we can definitely try to be smarter about it. That it's at the end of the list of autocompletions definitely helps. imo, the whole autocompletion thing needs to be changed so it isn't one giant list, but calling functions for each type of autocomplete, but that's going to be a much larger change 😅 (and also ventures into the territory of my GSoC proposal) |
||
); | ||
}, 500), | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really want to suffix a " "?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(personal opinion) I (mostly) do want a space after I insert an emoji.