Make extra space after emoji optional

未关闭
#29 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
vim
领域
tooling

调研方向

首先定位 issue 中提到的 s:emoji 函数和 g:github_dashboard 配置。当用户可以配置插件是否在 emoji 后添加额外空格,同时保留任何明确要求的空格时,这项工作就完成了。

由索引模型根据 Issue 内容生成。

描述

I am running the latest HEAD for NeoVim + the latest nightly of iTerm2, both of these things together allow for correct rendering of emoji with no character width problems or background color issues.

This means that the extra space which this plugin inserts after emoji is no longer required for my setup:

  function! s:emoji(name, ...)
    if b:github_emoji && has_key(s:emoji_code, tolower(a:name))
      let e = s:emoji_code[tolower(a:name)]
-     return join(map(copy(e), 'nr2char(v:val)'), '') . repeat(' ', 1 + (a:0 > 0 ? a:1 : 0))
+     return join(map(copy(e), 'nr2char(v:val)'), '') . repeat(' ', (a:0 > 0 ? a:1 : 0))
    else
      return ''
    endif
  endfunction

Would it be possible to make this an option that can be set via g:github_dashboard?

主要语言
Vim Script
星标
483
派生
22
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

junegunn/vim-github-dashboard 的其他 Issue

查看 junegunn/vim-github-dashboard 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。