├── .gitignore ├── LICENSE ├── README.md └── pythonx └── cm_sources ├── api.py ├── emoji └── codes.py ├── github_emoji.py ├── github_issue.py ├── github_link.py ├── github_repo.py └── github_user.py /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | /node_modules 3 | /doc/tags 4 | *.swp 5 | *.pyc 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ncm-github - github completion for nvim-completion-manager 2 | Copyright © 2017 roxma@qq.com 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the "Software"), 6 | to deal in the Software without restriction, including without limitation 7 | the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | and/or sell copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included 12 | in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 16 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 18 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 19 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 20 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | This repo is an attempt to reimplement 3 | [github-complete.vim](https://github.com/rhysd/github-complete.vim), for 4 | better integration with 5 | [nvim-completion-manager](https://github.com/roxma/nvim-completion-manager) 6 | 7 | -------------------------------------------------------------------------------- /pythonx/cm_sources/api.py: -------------------------------------------------------------------------------- 1 | import os 2 | from urllib.request import Request 3 | 4 | token = os.getenv('GITHUB_TOKEN') 5 | 6 | def create_request(url): 7 | req = url 8 | 9 | if token: 10 | req = Request(url, headers={'Authorization': 'token %s' % token}) 11 | 12 | return req 13 | -------------------------------------------------------------------------------- /pythonx/cm_sources/emoji/codes.py: -------------------------------------------------------------------------------- 1 | 2 | CODES = [ 3 | ('+1', 0x1f44d), 4 | ('-1', 0x1f44e), 5 | ('100', 0x1f4af), 6 | ('1234', 0x1f522), 7 | ('8ball', 0x1f3b1), 8 | ('a', 0x1f170), 9 | ('ab', 0x1f18e), 10 | ('abc', 0x1f524), 11 | ('abcd', 0x1f521), 12 | ('accept', 0x1f251), 13 | ('aerial_tramway', 0x1f6a1), 14 | ('airplane', 0x2708), 15 | ('alarm_clock', 0x23f0), 16 | ('alien', 0x1f47d), 17 | ('ambulance', 0x1f691), 18 | ('anchor', 0x2693), 19 | ('angel', 0x1f47c), 20 | ('anger', 0x1f4a2), 21 | ('angry', 0x1f620), 22 | ('anguished', 0x1f627), 23 | ('ant', 0x1f41c), 24 | ('apple', 0x1f34e), 25 | ('aquarius', 0x2652), 26 | ('aries', 0x2648), 27 | ('arrow_backward', 0x25c0), 28 | ('arrow_double_down', 0x23ec), 29 | ('arrow_double_up', 0x23eb), 30 | ('arrow_down', 0x2b07), 31 | ('arrow_down_small', 0x1f53d), 32 | ('arrow_forward', 0x25b6), 33 | ('arrow_heading_down', 0x2935), 34 | ('arrow_heading_up', 0x2934), 35 | ('arrow_left', 0x2b05), 36 | ('arrow_lower_left', 0x2199), 37 | ('arrow_lower_right', 0x2198), 38 | ('arrow_right', 0x27a1), 39 | ('arrow_right_hook', 0x21aa), 40 | ('arrow_up', 0x2b06), 41 | ('arrow_up_down', 0x2195), 42 | ('arrow_up_small', 0x1f53c), 43 | ('arrow_upper_left', 0x2196), 44 | ('arrow_upper_right', 0x2197), 45 | ('arrows_clockwise', 0x1f503), 46 | ('arrows_counterclockwise', 0x1f504), 47 | ('art', 0x1f3a8), 48 | ('articulated_lorry', 0x1f69b), 49 | ('astonished', 0x1f632), 50 | ('athletic_shoe', 0x1f45f), 51 | ('atm', 0x1f3e7), 52 | ('b', 0x1f171), 53 | ('baby', 0x1f476), 54 | ('baby_bottle', 0x1f37c), 55 | ('baby_chick', 0x1f424), 56 | ('baby_symbol', 0x1f6bc), 57 | ('back', 0x1f519), 58 | ('baggage_claim', 0x1f6c4), 59 | ('balloon', 0x1f388), 60 | ('ballot_box_with_check', 0x2611), 61 | ('bamboo', 0x1f38d), 62 | ('banana', 0x1f34c), 63 | ('bangbang', 0x203c), 64 | ('bank', 0x1f3e6), 65 | ('bar_chart', 0x1f4ca), 66 | ('barber', 0x1f488), 67 | ('baseball', 0x26be), 68 | ('basketball', 0x1f3c0), 69 | ('bath', 0x1f6c0), 70 | ('bathtub', 0x1f6c1), 71 | ('battery', 0x1f50b), 72 | ('bear', 0x1f43b), 73 | ('bee', 0x1f41d), 74 | ('beer', 0x1f37a), 75 | ('beers', 0x1f37b), 76 | ('beetle', 0x1f41e), 77 | ('beginner', 0x1f530), 78 | ('bell', 0x1f514), 79 | ('bento', 0x1f371), 80 | ('bicyclist', 0x1f6b4), 81 | ('bike', 0x1f6b2), 82 | ('bikini', 0x1f459), 83 | ('bird', 0x1f426), 84 | ('birthday', 0x1f382), 85 | ('black_circle', 0x26ab), 86 | ('black_joker', 0x1f0cf), 87 | ('black_large_square', 0x2b1b), 88 | ('black_medium_small_square', 0x25fe), 89 | ('black_medium_square', 0x25fc), 90 | ('black_nib', 0x2712), 91 | ('black_small_square', 0x25aa), 92 | ('black_square_button', 0x1f532), 93 | ('blossom', 0x1f33c), 94 | ('blowfish', 0x1f421), 95 | ('blue_book', 0x1f4d8), 96 | ('blue_car', 0x1f699), 97 | ('blue_heart', 0x1f499), 98 | ('blush', 0x1f60a), 99 | ('boar', 0x1f417), 100 | ('boat', 0x26f5), 101 | ('bomb', 0x1f4a3), 102 | ('book', 0x1f4d6), 103 | ('bookmark', 0x1f516), 104 | ('bookmark_tabs', 0x1f4d1), 105 | ('books', 0x1f4da), 106 | ('boom', 0x1f4a5), 107 | ('boot', 0x1f462), 108 | ('bouquet', 0x1f490), 109 | ('bow', 0x1f647), 110 | ('bowling', 0x1f3b3), 111 | ('boy', 0x1f466), 112 | ('bread', 0x1f35e), 113 | ('bride_with_veil', 0x1f470), 114 | ('bridge_at_night', 0x1f309), 115 | ('briefcase', 0x1f4bc), 116 | ('broken_heart', 0x1f494), 117 | ('bug', 0x1f41b), 118 | ('bulb', 0x1f4a1), 119 | ('bullettrain_front', 0x1f685), 120 | ('bullettrain_side', 0x1f684), 121 | ('bus', 0x1f68c), 122 | ('busstop', 0x1f68f), 123 | ('bust_in_silhouette', 0x1f464), 124 | ('busts_in_silhouette', 0x1f465), 125 | ('cactus', 0x1f335), 126 | ('cake', 0x1f370), 127 | ('calendar', 0x1f4c6), 128 | ('calling', 0x1f4f2), 129 | ('camel', 0x1f42b), 130 | ('camera', 0x1f4f7), 131 | ('cancer', 0x264b), 132 | ('candy', 0x1f36c), 133 | ('capital_abcd', 0x1f520), 134 | ('capricorn', 0x2651), 135 | ('car', 0x1f697), 136 | ('card_index', 0x1f4c7), 137 | ('carousel_horse', 0x1f3a0), 138 | ('cat', 0x1f431), 139 | ('cat2', 0x1f408), 140 | ('cd', 0x1f4bf), 141 | ('chart', 0x1f4b9), 142 | ('chart_with_downwards_trend', 0x1f4c9), 143 | ('chart_with_upwards_trend', 0x1f4c8), 144 | ('checkered_flag', 0x1f3c1), 145 | ('cherries', 0x1f352), 146 | ('cherry_blossom', 0x1f338), 147 | ('chestnut', 0x1f330), 148 | ('chicken', 0x1f414), 149 | ('children_crossing', 0x1f6b8), 150 | ('chocolate_bar', 0x1f36b), 151 | ('christmas_tree', 0x1f384), 152 | ('church', 0x26ea), 153 | ('cinema', 0x1f3a6), 154 | ('circus_tent', 0x1f3aa), 155 | ('city_sunrise', 0x1f307), 156 | ('city_sunset', 0x1f306), 157 | ('cl', 0x1f191), 158 | ('clap', 0x1f44f), 159 | ('clapper', 0x1f3ac), 160 | ('clipboard', 0x1f4cb), 161 | ('clock1', 0x1f550), 162 | ('clock10', 0x1f559), 163 | ('clock1030', 0x1f565), 164 | ('clock11', 0x1f55a), 165 | ('clock1130', 0x1f566), 166 | ('clock12', 0x1f55b), 167 | ('clock1230', 0x1f567), 168 | ('clock130', 0x1f55c), 169 | ('clock2', 0x1f551), 170 | ('clock230', 0x1f55d), 171 | ('clock3', 0x1f552), 172 | ('clock330', 0x1f55e), 173 | ('clock4', 0x1f553), 174 | ('clock430', 0x1f55f), 175 | ('clock5', 0x1f554), 176 | ('clock530', 0x1f560), 177 | ('clock6', 0x1f555), 178 | ('clock630', 0x1f561), 179 | ('clock7', 0x1f556), 180 | ('clock730', 0x1f562), 181 | ('clock8', 0x1f557), 182 | ('clock830', 0x1f563), 183 | ('clock9', 0x1f558), 184 | ('clock930', 0x1f564), 185 | ('closed_book', 0x1f4d5), 186 | ('closed_lock_with_key', 0x1f510), 187 | ('closed_umbrella', 0x1f302), 188 | ('cloud', 0x2601), 189 | ('clubs', 0x2663), 190 | ('cn', 0x1f1e8), 191 | ('cn', 0x1f1f3), 192 | ('cocktail', 0x1f378), 193 | ('coffee', 0x2615), 194 | ('cold_sweat', 0x1f630), 195 | ('collision', 0x1f4a5), 196 | ('computer', 0x1f4bb), 197 | ('confetti_ball', 0x1f38a), 198 | ('confounded', 0x1f616), 199 | ('confused', 0x1f615), 200 | ('congratulations', 0x3297), 201 | ('construction', 0x1f6a7), 202 | ('construction_worker', 0x1f477), 203 | ('convenience_store', 0x1f3ea), 204 | ('cookie', 0x1f36a), 205 | ('cool', 0x1f192), 206 | ('cop', 0x1f46e), 207 | ('copyright', 0x00a9), 208 | ('corn', 0x1f33d), 209 | ('couple', 0x1f46b), 210 | ('couple_with_heart', 0x1f491), 211 | ('couplekiss', 0x1f48f), 212 | ('cow', 0x1f42e), 213 | ('cow2', 0x1f404), 214 | ('credit_card', 0x1f4b3), 215 | ('crescent_moon', 0x1f319), 216 | ('crocodile', 0x1f40a), 217 | ('crossed_flags', 0x1f38c), 218 | ('crown', 0x1f451), 219 | ('cry', 0x1f622), 220 | ('crying_cat_face', 0x1f63f), 221 | ('crystal_ball', 0x1f52e), 222 | ('cupid', 0x1f498), 223 | ('curly_loop', 0x27b0), 224 | ('currency_exchange', 0x1f4b1), 225 | ('curry', 0x1f35b), 226 | ('custard', 0x1f36e), 227 | ('customs', 0x1f6c3), 228 | ('cyclone', 0x1f300), 229 | ('dancer', 0x1f483), 230 | ('dancers', 0x1f46f), 231 | ('dango', 0x1f361), 232 | ('dart', 0x1f3af), 233 | ('dash', 0x1f4a8), 234 | ('date', 0x1f4c5), 235 | ('de', 0x1f1e9), 236 | ('de', 0x1f1ea), 237 | ('deciduous_tree', 0x1f333), 238 | ('department_store', 0x1f3ec), 239 | ('diamond_shape_with_a_dot_inside', 0x1f4a0), 240 | ('diamonds', 0x2666), 241 | ('disappointed', 0x1f61e), 242 | ('disappointed_relieved', 0x1f625), 243 | ('dizzy', 0x1f4ab), 244 | ('dizzy_face', 0x1f635), 245 | ('do_not_litter', 0x1f6af), 246 | ('dog', 0x1f436), 247 | ('dog2', 0x1f415), 248 | ('dollar', 0x1f4b5), 249 | ('dolls', 0x1f38e), 250 | ('dolphin', 0x1f42c), 251 | ('door', 0x1f6aa), 252 | ('doughnut', 0x1f369), 253 | ('dragon', 0x1f409), 254 | ('dragon_face', 0x1f432), 255 | ('dress', 0x1f457), 256 | ('dromedary_camel', 0x1f42a), 257 | ('droplet', 0x1f4a7), 258 | ('dvd', 0x1f4c0), 259 | ('e-mail', 0x1f4e7), 260 | ('ear', 0x1f442), 261 | ('ear_of_rice', 0x1f33e), 262 | ('earth_africa', 0x1f30d), 263 | ('earth_americas', 0x1f30e), 264 | ('earth_asia', 0x1f30f), 265 | ('egg', 0x1f373), 266 | ('eggplant', 0x1f346), 267 | ('eight', 0x0038), 268 | ('eight_pointed_black_star', 0x2734), 269 | ('eight_spoked_asterisk', 0x2733), 270 | ('electric_plug', 0x1f50c), 271 | ('elephant', 0x1f418), 272 | ('email', 0x2709), 273 | ('end', 0x1f51a), 274 | ('envelope', 0x2709), 275 | ('envelope_with_arrow', 0x1f4e9), 276 | ('es', 0x1f1f8), 277 | ('es', 0x1f1ea), 278 | ('euro', 0x1f4b6), 279 | ('european_castle', 0x1f3f0), 280 | ('european_post_office', 0x1f3e4), 281 | ('evergreen_tree', 0x1f332), 282 | ('exclamation', 0x2757), 283 | ('expressionless', 0x1f611), 284 | ('eyeglasses', 0x1f453), 285 | ('eyes', 0x1f440), 286 | ('facepunch', 0x1f44a), 287 | ('factory', 0x1f3ed), 288 | ('fallen_leaf', 0x1f342), 289 | ('family', 0x1f46a), 290 | ('fast_forward', 0x23e9), 291 | ('fax', 0x1f4e0), 292 | ('fearful', 0x1f628), 293 | ('feet', 0x1f43e), 294 | ('ferris_wheel', 0x1f3a1), 295 | ('file_folder', 0x1f4c1), 296 | ('fire', 0x1f525), 297 | ('fire_engine', 0x1f692), 298 | ('fireworks', 0x1f386), 299 | ('first_quarter_moon', 0x1f313), 300 | ('first_quarter_moon_with_face', 0x1f31b), 301 | ('fish', 0x1f41f), 302 | ('fish_cake', 0x1f365), 303 | ('fishing_pole_and_fish', 0x1f3a3), 304 | ('fist', 0x270a), 305 | ('five', 0x0035), 306 | ('flags', 0x1f38f), 307 | ('flashlight', 0x1f526), 308 | ('flipper', 0x1f42c), 309 | ('floppy_disk', 0x1f4be), 310 | ('flower_playing_cards', 0x1f3b4), 311 | ('flushed', 0x1f633), 312 | ('foggy', 0x1f301), 313 | ('football', 0x1f3c8), 314 | ('footprints', 0x1f463), 315 | ('fork_and_knife', 0x1f374), 316 | ('fountain', 0x26f2), 317 | ('four', 0x0034), 318 | ('four_leaf_clover', 0x1f340), 319 | ('fr', 0x1f1f7), 320 | ('fr', 0x1f1eb), 321 | ('free', 0x1f193), 322 | ('fried_shrimp', 0x1f364), 323 | ('fries', 0x1f35f), 324 | ('frog', 0x1f438), 325 | ('frowning', 0x1f626), 326 | ('fuelpump', 0x26fd), 327 | ('full_moon', 0x1f315), 328 | ('full_moon_with_face', 0x1f31d), 329 | ('game_die', 0x1f3b2), 330 | ('gb', 0x1f1e7), 331 | ('gb', 0x1f1ec), 332 | ('gem', 0x1f48e), 333 | ('gemini', 0x264a), 334 | ('ghost', 0x1f47b), 335 | ('gift', 0x1f381), 336 | ('gift_heart', 0x1f49d), 337 | ('girl', 0x1f467), 338 | ('globe_with_meridians', 0x1f310), 339 | ('goat', 0x1f410), 340 | ('golf', 0x26f3), 341 | ('grapes', 0x1f347), 342 | ('green_apple', 0x1f34f), 343 | ('green_book', 0x1f4d7), 344 | ('green_heart', 0x1f49a), 345 | ('grey_exclamation', 0x2755), 346 | ('grey_question', 0x2754), 347 | ('grimacing', 0x1f62c), 348 | ('grin', 0x1f601), 349 | ('grinning', 0x1f600), 350 | ('guardsman', 0x1f482), 351 | ('guitar', 0x1f3b8), 352 | ('gun', 0x1f52b), 353 | ('haircut', 0x1f487), 354 | ('hamburger', 0x1f354), 355 | ('hammer', 0x1f528), 356 | ('hamster', 0x1f439), 357 | ('hand', 0x270b), 358 | ('handbag', 0x1f45c), 359 | ('hankey', 0x1f4a9), 360 | ('hash', 0x0023), 361 | ('hatched_chick', 0x1f425), 362 | ('hatching_chick', 0x1f423), 363 | ('headphones', 0x1f3a7), 364 | ('hear_no_evil', 0x1f649), 365 | ('heart', 0x2764), 366 | ('heart_decoration', 0x1f49f), 367 | ('heart_eyes', 0x1f60d), 368 | ('heart_eyes_cat', 0x1f63b), 369 | ('heartbeat', 0x1f493), 370 | ('heartpulse', 0x1f497), 371 | ('hearts', 0x2665), 372 | ('heavy_check_mark', 0x2714), 373 | ('heavy_division_sign', 0x2797), 374 | ('heavy_dollar_sign', 0x1f4b2), 375 | ('heavy_exclamation_mark', 0x2757), 376 | ('heavy_minus_sign', 0x2796), 377 | ('heavy_multiplication_x', 0x2716), 378 | ('heavy_plus_sign', 0x2795), 379 | ('helicopter', 0x1f681), 380 | ('herb', 0x1f33f), 381 | ('hibiscus', 0x1f33a), 382 | ('high_brightness', 0x1f506), 383 | ('high_heel', 0x1f460), 384 | ('hocho', 0x1f52a), 385 | ('honey_pot', 0x1f36f), 386 | ('honeybee', 0x1f41d), 387 | ('horse', 0x1f434), 388 | ('horse_racing', 0x1f3c7), 389 | ('hospital', 0x1f3e5), 390 | ('hotel', 0x1f3e8), 391 | ('hotsprings', 0x2668), 392 | ('hourglass', 0x231b), 393 | ('hourglass_flowing_sand', 0x23f3), 394 | ('house', 0x1f3e0), 395 | ('house_with_garden', 0x1f3e1), 396 | ('hushed', 0x1f62f), 397 | ('ice_cream', 0x1f368), 398 | ('icecream', 0x1f366), 399 | ('id', 0x1f194), 400 | ('ideograph_advantage', 0x1f250), 401 | ('imp', 0x1f47f), 402 | ('inbox_tray', 0x1f4e5), 403 | ('incoming_envelope', 0x1f4e8), 404 | ('information_desk_person', 0x1f481), 405 | ('information_source', 0x2139), 406 | ('innocent', 0x1f607), 407 | ('interrobang', 0x2049), 408 | ('iphone', 0x1f4f1), 409 | ('it', 0x1f1f9), 410 | ('it', 0x1f1ee), 411 | ('izakaya_lantern', 0x1f3ee), 412 | ('jack_o_lantern', 0x1f383), 413 | ('japan', 0x1f5fe), 414 | ('japanese_castle', 0x1f3ef), 415 | ('japanese_goblin', 0x1f47a), 416 | ('japanese_ogre', 0x1f479), 417 | ('jeans', 0x1f456), 418 | ('joy', 0x1f602), 419 | ('joy_cat', 0x1f639), 420 | ('jp', 0x1f1f5), 421 | ('jp', 0x1f1ef), 422 | ('key', 0x1f511), 423 | ('keycap_ten', 0x1f51f), 424 | ('kimono', 0x1f458), 425 | ('kiss', 0x1f48b), 426 | ('kissing', 0x1f617), 427 | ('kissing_cat', 0x1f63d), 428 | ('kissing_closed_eyes', 0x1f61a), 429 | ('kissing_heart', 0x1f618), 430 | ('kissing_smiling_eyes', 0x1f619), 431 | ('koala', 0x1f428), 432 | ('koko', 0x1f201), 433 | ('kr', 0x1f1f7), 434 | ('kr', 0x1f1f0), 435 | ('lantern', 0x1f3ee), 436 | ('large_blue_circle', 0x1f535), 437 | ('large_blue_diamond', 0x1f537), 438 | ('large_orange_diamond', 0x1f536), 439 | ('last_quarter_moon', 0x1f317), 440 | ('last_quarter_moon_with_face', 0x1f31c), 441 | ('laughing', 0x1f606), 442 | ('leaves', 0x1f343), 443 | ('ledger', 0x1f4d2), 444 | ('left_luggage', 0x1f6c5), 445 | ('left_right_arrow', 0x2194), 446 | ('leftwards_arrow_with_hook', 0x21a9), 447 | ('lemon', 0x1f34b), 448 | ('leo', 0x264c), 449 | ('leopard', 0x1f406), 450 | ('libra', 0x264e), 451 | ('light_rail', 0x1f688), 452 | ('link', 0x1f517), 453 | ('lips', 0x1f444), 454 | ('lipstick', 0x1f484), 455 | ('lock', 0x1f512), 456 | ('lock_with_ink_pen', 0x1f50f), 457 | ('lollipop', 0x1f36d), 458 | ('loop', 0x27bf), 459 | ('loudspeaker', 0x1f4e2), 460 | ('love_hotel', 0x1f3e9), 461 | ('love_letter', 0x1f48c), 462 | ('low_brightness', 0x1f505), 463 | ('m', 0x24c2), 464 | ('mag', 0x1f50d), 465 | ('mag_right', 0x1f50e), 466 | ('mahjong', 0x1f004), 467 | ('mailbox', 0x1f4eb), 468 | ('mailbox_closed', 0x1f4ea), 469 | ('mailbox_with_mail', 0x1f4ec), 470 | ('mailbox_with_no_mail', 0x1f4ed), 471 | ('man', 0x1f468), 472 | ('man_with_gua_pi_mao', 0x1f472), 473 | ('man_with_turban', 0x1f473), 474 | ('mans_shoe', 0x1f45e), 475 | ('maple_leaf', 0x1f341), 476 | ('mask', 0x1f637), 477 | ('massage', 0x1f486), 478 | ('meat_on_bone', 0x1f356), 479 | ('mega', 0x1f4e3), 480 | ('melon', 0x1f348), 481 | ('memo', 0x1f4dd), 482 | ('mens', 0x1f6b9), 483 | ('metro', 0x1f687), 484 | ('microphone', 0x1f3a4), 485 | ('microscope', 0x1f52c), 486 | ('milky_way', 0x1f30c), 487 | ('minibus', 0x1f690), 488 | ('minidisc', 0x1f4bd), 489 | ('mobile_phone_off', 0x1f4f4), 490 | ('money_with_wings', 0x1f4b8), 491 | ('moneybag', 0x1f4b0), 492 | ('monkey', 0x1f412), 493 | ('monkey_face', 0x1f435), 494 | ('monorail', 0x1f69d), 495 | ('moon', 0x1f314), 496 | ('mortar_board', 0x1f393), 497 | ('mount_fuji', 0x1f5fb), 498 | ('mountain_bicyclist', 0x1f6b5), 499 | ('mountain_cableway', 0x1f6a0), 500 | ('mountain_railway', 0x1f69e), 501 | ('mouse', 0x1f42d), 502 | ('mouse2', 0x1f401), 503 | ('movie_camera', 0x1f3a5), 504 | ('moyai', 0x1f5ff), 505 | ('muscle', 0x1f4aa), 506 | ('mushroom', 0x1f344), 507 | ('musical_keyboard', 0x1f3b9), 508 | ('musical_note', 0x1f3b5), 509 | ('musical_score', 0x1f3bc), 510 | ('mute', 0x1f507), 511 | ('nail_care', 0x1f485), 512 | ('name_badge', 0x1f4db), 513 | ('necktie', 0x1f454), 514 | ('negative_squared_cross_mark', 0x274e), 515 | ('neutral_face', 0x1f610), 516 | ('new', 0x1f195), 517 | ('new_moon', 0x1f311), 518 | ('new_moon_with_face', 0x1f31a), 519 | ('newspaper', 0x1f4f0), 520 | ('ng', 0x1f196), 521 | ('nine', 0x0039), 522 | ('no_bell', 0x1f515), 523 | ('no_bicycles', 0x1f6b3), 524 | ('no_entry', 0x26d4), 525 | ('no_entry_sign', 0x1f6ab), 526 | ('no_good', 0x1f645), 527 | ('no_mobile_phones', 0x1f4f5), 528 | ('no_mouth', 0x1f636), 529 | ('no_pedestrians', 0x1f6b7), 530 | ('no_smoking', 0x1f6ad), 531 | ('non-potable_water', 0x1f6b1), 532 | ('nose', 0x1f443), 533 | ('notebook', 0x1f4d3), 534 | ('notebook_with_decorative_cover', 0x1f4d4), 535 | ('notes', 0x1f3b6), 536 | ('nut_and_bolt', 0x1f529), 537 | ('o', 0x2b55), 538 | ('o2', 0x1f17e), 539 | ('ocean', 0x1f30a), 540 | ('octopus', 0x1f419), 541 | ('oden', 0x1f362), 542 | ('office', 0x1f3e2), 543 | ('ok', 0x1f197), 544 | ('ok_hand', 0x1f44c), 545 | ('ok_woman', 0x1f646), 546 | ('older_man', 0x1f474), 547 | ('older_woman', 0x1f475), 548 | ('on', 0x1f51b), 549 | ('oncoming_automobile', 0x1f698), 550 | ('oncoming_bus', 0x1f68d), 551 | ('oncoming_police_car', 0x1f694), 552 | ('oncoming_taxi', 0x1f696), 553 | ('one', 0x0031), 554 | ('open_book', 0x1f4d6), 555 | ('open_file_folder', 0x1f4c2), 556 | ('open_hands', 0x1f450), 557 | ('open_mouth', 0x1f62e), 558 | ('ophiuchus', 0x26ce), 559 | ('orange_book', 0x1f4d9), 560 | ('outbox_tray', 0x1f4e4), 561 | ('ox', 0x1f402), 562 | ('package', 0x1f4e6), 563 | ('page_facing_up', 0x1f4c4), 564 | ('page_with_curl', 0x1f4c3), 565 | ('pager', 0x1f4df), 566 | ('palm_tree', 0x1f334), 567 | ('panda_face', 0x1f43c), 568 | ('paperclip', 0x1f4ce), 569 | ('parking', 0x1f17f), 570 | ('part_alternation_mark', 0x303d), 571 | ('partly_sunny', 0x26c5), 572 | ('passport_control', 0x1f6c2), 573 | ('paw_prints', 0x1f43e), 574 | ('peach', 0x1f351), 575 | ('pear', 0x1f350), 576 | ('pencil', 0x1f4dd), 577 | ('pencil2', 0x270f), 578 | ('penguin', 0x1f427), 579 | ('pensive', 0x1f614), 580 | ('performing_arts', 0x1f3ad), 581 | ('persevere', 0x1f623), 582 | ('person_frowning', 0x1f64d), 583 | ('person_with_blond_hair', 0x1f471), 584 | ('person_with_pouting_face', 0x1f64e), 585 | ('phone', 0x260e), 586 | ('pig', 0x1f437), 587 | ('pig2', 0x1f416), 588 | ('pig_nose', 0x1f43d), 589 | ('pill', 0x1f48a), 590 | ('pineapple', 0x1f34d), 591 | ('pisces', 0x2653), 592 | ('pizza', 0x1f355), 593 | ('point_down', 0x1f447), 594 | ('point_left', 0x1f448), 595 | ('point_right', 0x1f449), 596 | ('point_up', 0x261d), 597 | ('point_up_2', 0x1f446), 598 | ('police_car', 0x1f693), 599 | ('poodle', 0x1f429), 600 | ('poop', 0x1f4a9), 601 | ('post_office', 0x1f3e3), 602 | ('postal_horn', 0x1f4ef), 603 | ('postbox', 0x1f4ee), 604 | ('potable_water', 0x1f6b0), 605 | ('pouch', 0x1f45d), 606 | ('poultry_leg', 0x1f357), 607 | ('pound', 0x1f4b7), 608 | ('pouting_cat', 0x1f63e), 609 | ('pray', 0x1f64f), 610 | ('princess', 0x1f478), 611 | ('punch', 0x1f44a), 612 | ('purple_heart', 0x1f49c), 613 | ('purse', 0x1f45b), 614 | ('pushpin', 0x1f4cc), 615 | ('put_litter_in_its_place', 0x1f6ae), 616 | ('question', 0x2753), 617 | ('rabbit', 0x1f430), 618 | ('rabbit2', 0x1f407), 619 | ('racehorse', 0x1f40e), 620 | ('radio', 0x1f4fb), 621 | ('radio_button', 0x1f518), 622 | ('rage', 0x1f621), 623 | ('railway_car', 0x1f683), 624 | ('rainbow', 0x1f308), 625 | ('raised_hand', 0x270b), 626 | ('raised_hands', 0x1f64c), 627 | ('raising_hand', 0x1f64b), 628 | ('ram', 0x1f40f), 629 | ('ramen', 0x1f35c), 630 | ('rat', 0x1f400), 631 | ('recycle', 0x267b), 632 | ('red_car', 0x1f697), 633 | ('red_circle', 0x1f534), 634 | ('registered', 0x00ae), 635 | ('relaxed', 0x263a), 636 | ('relieved', 0x1f60c), 637 | ('repeat', 0x1f501), 638 | ('repeat_one', 0x1f502), 639 | ('restroom', 0x1f6bb), 640 | ('revolving_hearts', 0x1f49e), 641 | ('rewind', 0x23ea), 642 | ('ribbon', 0x1f380), 643 | ('rice', 0x1f35a), 644 | ('rice_ball', 0x1f359), 645 | ('rice_cracker', 0x1f358), 646 | ('rice_scene', 0x1f391), 647 | ('ring', 0x1f48d), 648 | ('rocket', 0x1f680), 649 | ('roller_coaster', 0x1f3a2), 650 | ('rooster', 0x1f413), 651 | ('rose', 0x1f339), 652 | ('rotating_light', 0x1f6a8), 653 | ('round_pushpin', 0x1f4cd), 654 | ('rowboat', 0x1f6a3), 655 | ('ru', 0x1f1fa), 656 | ('ru', 0x1f1f7), 657 | ('rugby_football', 0x1f3c9), 658 | ('runner', 0x1f3c3), 659 | ('running', 0x1f3c3), 660 | ('running_shirt_with_sash', 0x1f3bd), 661 | ('sa', 0x1f202), 662 | ('sagittarius', 0x2650), 663 | ('sailboat', 0x26f5), 664 | ('sake', 0x1f376), 665 | ('sandal', 0x1f461), 666 | ('santa', 0x1f385), 667 | ('satellite', 0x1f4e1), 668 | ('satisfied', 0x1f606), 669 | ('saxophone', 0x1f3b7), 670 | ('school', 0x1f3eb), 671 | ('school_satchel', 0x1f392), 672 | ('scissors', 0x2702), 673 | ('scorpius', 0x264f), 674 | ('scream', 0x1f631), 675 | ('scream_cat', 0x1f640), 676 | ('scroll', 0x1f4dc), 677 | ('seat', 0x1f4ba), 678 | ('secret', 0x3299), 679 | ('see_no_evil', 0x1f648), 680 | ('seedling', 0x1f331), 681 | ('seven', 0x0037), 682 | ('shaved_ice', 0x1f367), 683 | ('sheep', 0x1f411), 684 | ('shell', 0x1f41a), 685 | ('ship', 0x1f6a2), 686 | ('shirt', 0x1f455), 687 | ('shit', 0x1f4a9), 688 | ('shoe', 0x1f45e), 689 | ('shower', 0x1f6bf), 690 | ('signal_strength', 0x1f4f6), 691 | ('six', 0x0036), 692 | ('six_pointed_star', 0x1f52f), 693 | ('ski', 0x1f3bf), 694 | ('skull', 0x1f480), 695 | ('sleeping', 0x1f634), 696 | ('sleepy', 0x1f62a), 697 | ('slot_machine', 0x1f3b0), 698 | ('small_blue_diamond', 0x1f539), 699 | ('small_orange_diamond', 0x1f538), 700 | ('small_red_triangle', 0x1f53a), 701 | ('small_red_triangle_down', 0x1f53b), 702 | ('smile', 0x1f604), 703 | ('smile_cat', 0x1f638), 704 | ('smiley', 0x1f603), 705 | ('smiley_cat', 0x1f63a), 706 | ('smiling_imp', 0x1f608), 707 | ('smirk', 0x1f60f), 708 | ('smirk_cat', 0x1f63c), 709 | ('smoking', 0x1f6ac), 710 | ('snail', 0x1f40c), 711 | ('snake', 0x1f40d), 712 | ('snowboarder', 0x1f3c2), 713 | ('snowflake', 0x2744), 714 | ('snowman', 0x26c4), 715 | ('sob', 0x1f62d), 716 | ('soccer', 0x26bd), 717 | ('soon', 0x1f51c), 718 | ('sos', 0x1f198), 719 | ('sound', 0x1f509), 720 | ('space_invader', 0x1f47e), 721 | ('spades', 0x2660), 722 | ('spaghetti', 0x1f35d), 723 | ('sparkle', 0x2747), 724 | ('sparkler', 0x1f387), 725 | ('sparkles', 0x2728), 726 | ('sparkling_heart', 0x1f496), 727 | ('speak_no_evil', 0x1f64a), 728 | ('speaker', 0x1f50a), 729 | ('speech_balloon', 0x1f4ac), 730 | ('speedboat', 0x1f6a4), 731 | ('star', 0x2b50), 732 | ('star2', 0x1f31f), 733 | ('stars', 0x1f303), 734 | ('station', 0x1f689), 735 | ('statue_of_liberty', 0x1f5fd), 736 | ('steam_locomotive', 0x1f682), 737 | ('stew', 0x1f372), 738 | ('straight_ruler', 0x1f4cf), 739 | ('strawberry', 0x1f353), 740 | ('stuck_out_tongue', 0x1f61b), 741 | ('stuck_out_tongue_closed_eyes', 0x1f61d), 742 | ('stuck_out_tongue_winking_eye', 0x1f61c), 743 | ('sun_with_face', 0x1f31e), 744 | ('sunflower', 0x1f33b), 745 | ('sunglasses', 0x1f60e), 746 | ('sunny', 0x2600), 747 | ('sunrise', 0x1f305), 748 | ('sunrise_over_mountains', 0x1f304), 749 | ('surfer', 0x1f3c4), 750 | ('sushi', 0x1f363), 751 | ('suspension_railway', 0x1f69f), 752 | ('sweat', 0x1f613), 753 | ('sweat_drops', 0x1f4a6), 754 | ('sweat_smile', 0x1f605), 755 | ('sweet_potato', 0x1f360), 756 | ('swimmer', 0x1f3ca), 757 | ('symbols', 0x1f523), 758 | ('syringe', 0x1f489), 759 | ('tada', 0x1f389), 760 | ('tanabata_tree', 0x1f38b), 761 | ('tangerine', 0x1f34a), 762 | ('taurus', 0x2649), 763 | ('taxi', 0x1f695), 764 | ('tea', 0x1f375), 765 | ('telephone', 0x260e), 766 | ('telephone_receiver', 0x1f4de), 767 | ('telescope', 0x1f52d), 768 | ('tennis', 0x1f3be), 769 | ('tent', 0x26fa), 770 | ('thought_balloon', 0x1f4ad), 771 | ('three', 0x0033), 772 | ('thumbsdown', 0x1f44e), 773 | ('thumbsup', 0x1f44d), 774 | ('ticket', 0x1f3ab), 775 | ('tiger', 0x1f42f), 776 | ('tiger2', 0x1f405), 777 | ('tired_face', 0x1f62b), 778 | ('tm', 0x2122), 779 | ('toilet', 0x1f6bd), 780 | ('tokyo_tower', 0x1f5fc), 781 | ('tomato', 0x1f345), 782 | ('tongue', 0x1f445), 783 | ('top', 0x1f51d), 784 | ('tophat', 0x1f3a9), 785 | ('tractor', 0x1f69c), 786 | ('traffic_light', 0x1f6a5), 787 | ('train', 0x1f683), 788 | ('train2', 0x1f686), 789 | ('tram', 0x1f68a), 790 | ('triangular_flag_on_post', 0x1f6a9), 791 | ('triangular_ruler', 0x1f4d0), 792 | ('trident', 0x1f531), 793 | ('triumph', 0x1f624), 794 | ('trolleybus', 0x1f68e), 795 | ('trophy', 0x1f3c6), 796 | ('tropical_drink', 0x1f379), 797 | ('tropical_fish', 0x1f420), 798 | ('truck', 0x1f69a), 799 | ('trumpet', 0x1f3ba), 800 | ('tshirt', 0x1f455), 801 | ('tulip', 0x1f337), 802 | ('turtle', 0x1f422), 803 | ('tv', 0x1f4fa), 804 | ('twisted_rightwards_arrows', 0x1f500), 805 | ('two', 0x0032), 806 | ('two_hearts', 0x1f495), 807 | ('two_men_holding_hands', 0x1f46c), 808 | ('two_women_holding_hands', 0x1f46d), 809 | ('u5272', 0x1f239), 810 | ('u5408', 0x1f234), 811 | ('u55b6', 0x1f23a), 812 | ('u6307', 0x1f22f), 813 | ('u6708', 0x1f237), 814 | ('u6709', 0x1f236), 815 | ('u6e80', 0x1f235), 816 | ('u7121', 0x1f21a), 817 | ('u7533', 0x1f238), 818 | ('u7981', 0x1f232), 819 | ('u7a7a', 0x1f233), 820 | ('uk', 0x1f1e7), 821 | ('uk', 0x1f1ec), 822 | ('umbrella', 0x2614), 823 | ('unamused', 0x1f612), 824 | ('underage', 0x1f51e), 825 | ('unlock', 0x1f513), 826 | ('up', 0x1f199), 827 | ('us', 0x1f1f8), 828 | ('us', 0x1f1fa), 829 | ('v', 0x270c), 830 | ('vertical_traffic_light', 0x1f6a6), 831 | ('vhs', 0x1f4fc), 832 | ('vibration_mode', 0x1f4f3), 833 | ('video_camera', 0x1f4f9), 834 | ('video_game', 0x1f3ae), 835 | ('violin', 0x1f3bb), 836 | ('virgo', 0x264d), 837 | ('volcano', 0x1f30b), 838 | ('vs', 0x1f19a), 839 | ('walking', 0x1f6b6), 840 | ('waning_crescent_moon', 0x1f318), 841 | ('waning_gibbous_moon', 0x1f316), 842 | ('warning', 0x26a0), 843 | ('watch', 0x231a), 844 | ('water_buffalo', 0x1f403), 845 | ('watermelon', 0x1f349), 846 | ('wave', 0x1f44b), 847 | ('wavy_dash', 0x3030), 848 | ('waxing_crescent_moon', 0x1f312), 849 | ('waxing_gibbous_moon', 0x1f314), 850 | ('wc', 0x1f6be), 851 | ('weary', 0x1f629), 852 | ('wedding', 0x1f492), 853 | ('whale', 0x1f433), 854 | ('whale2', 0x1f40b), 855 | ('wheelchair', 0x267f), 856 | ('white_check_mark', 0x2705), 857 | ('white_circle', 0x26aa), 858 | ('white_flower', 0x1f4ae), 859 | ('white_large_square', 0x2b1c), 860 | ('white_medium_small_square', 0x25fd), 861 | ('white_medium_square', 0x25fb), 862 | ('white_small_square', 0x25ab), 863 | ('white_square_button', 0x1f533), 864 | ('wind_chime', 0x1f390), 865 | ('wine_glass', 0x1f377), 866 | ('wink', 0x1f609), 867 | ('wolf', 0x1f43a), 868 | ('woman', 0x1f469), 869 | ('womans_clothes', 0x1f45a), 870 | ('womans_hat', 0x1f452), 871 | ('womens', 0x1f6ba), 872 | ('worried', 0x1f61f), 873 | ('wrench', 0x1f527), 874 | ('x', 0x274c), 875 | ('yellow_heart', 0x1f49b), 876 | ('yen', 0x1f4b4), 877 | ('yum', 0x1f60b), 878 | ('zap', 0x26a1), 879 | ('zero', 0x0030), 880 | ('zzz', 0x1f4a4), 881 | ] 882 | 883 | -------------------------------------------------------------------------------- /pythonx/cm_sources/github_emoji.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | from cm import register_source, Base 4 | register_source(name='github-emoji', 5 | abbreviation='emoji', 6 | scopes=['gitcommit', 'markdown', 'magit'], 7 | word_pattern = r':[\w+\-]*', 8 | cm_refresh_length=2, 9 | priority=8) 10 | 11 | from .emoji.codes import CODES 12 | 13 | class Source(Base): 14 | def cm_refresh(self,info,ctx): 15 | matches = [dict(word=':'+k+':', menu=chr(v)) for k,v in CODES] 16 | self.complete(info, ctx, ctx['startcol'], matches) 17 | -------------------------------------------------------------------------------- /pythonx/cm_sources/github_issue.py: -------------------------------------------------------------------------------- 1 | 2 | from cm import register_source, Base, getLogger 3 | 4 | register_source(name='github-issue', 5 | abbreviation='issue', 6 | scopes=['gitcommit', 'markdown', 'magit'], 7 | word_pattern = r'((?