Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
9a397254
Commit
9a397254
authored
Jul 15, 2015
by
Andrew Janke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant comments from the .zsh file (since they're in README now).
parent
6d618ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
65 deletions
+1
-65
emoji.plugin.zsh
plugins/emoji/emoji.plugin.zsh
+1
-65
No files found.
plugins/emoji/emoji.plugin.zsh
View file @
9a397254
...
@@ -2,71 +2,7 @@
...
@@ -2,71 +2,7 @@
#
#
# Makes emoji support available within ZSH
# Makes emoji support available within ZSH
#
#
# This plugin provides support for working with emoji characters in zsh using human-readable
# See the README for documentation.
# identifiers. It provides global variables which map emoji names to the actual
# characters, and some anmed groupings of emoji. It also provides associated functions
# for displaying them.
#
# Global variables:
# $emoji - Maps emoji names to characters
# $emoji2 - Auxiliary and combining characters
# $emoji_flags - Maps country names to flag characters (using region-indicators)
# $emoji_skintone - Skin tone modifiers (from Unicode 8.0)
# $emoji_groups - Named groups of emoji. Keys are group names; values are whitespace-separated
# lists of character names
#
# Functions:
# random_emoji - Prints a random emoji character
# display_emoji - Displays emoji, along with their names
#
# The emoji names and codes are sourced from Unicode Technical Report #51, which provides
# information on emoji support in Unicode. It can be found at http://www.unicode.org/reports/tr51/index.html.
#
# The group definitions are added by this OMZ plugin. They are not based on external definitions.
#
# The emoji in the main $emoji map are standalone character sequences which can all be output on their
# own, without worrying about combining effects. The values may actually be multi-code-point sequences,
# instead of a single code point, and may include combining characters in those sequences. But they're
# arranged so their effects do not extend beyond that sequence.
#
# Usage and Examples:
#
# To output a specific emoji, use:
# $> echo $emoji[<name>]
# E.g.:
# $> echo $emoji[mouse_face]
#
# To output a random emoji, use:
# $> random_emoji
# To output a random emoji from a particular group, use:
# $> random_emoji <group>
# E.g.:
# $> random_emoji fruits
# $> random_emoji animals
# $> random_emoji vehicles
# $> random_emoji faces
# The valid group names can be found with `echo ${(k)emoji_groups}`
#
# To list all available emoji with their names, use:
# $> display_emoji
# $> display_emoji fruits
# $> display_emoji animals
# $> display_emoji vehicles
# $> display_emoji faces
#
# To use emoji in a prompt:
# PROMPT="$emoji[penguin] > ""
# PROMPT='$(random_emoji fruits) > '
# surfer=$emoji[surfer]
# PROMPT="$surfer > "
#
#
# TODO: Move doco to a README
# TODO: Factor out parsing from generation in update_emoji.pl
# TODO: Incorporate CLDR data for ordering and groupings
# TODO: Short :bracket: style names (from gemoji)
# TODO: Country codes for flags
# TODO: ZWJ combining function?
_omz_emoji_plugin_dir
=
"
${
0
:h
}
"
_omz_emoji_plugin_dir
=
"
${
0
:h
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment