Feature Request: navigate wrapped lines as individual rows in Vim mode

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
vim

调研方向

issue 中没有指定文件或测试。使用链接的屏幕截图作为上下文,复现 Vim 模式下换行行的行为,并将其与 Sublime 模式进行比较;当列出的 Vim 导航键按要求在编辑器的换行行之间移动时,即表示完成。

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

描述

Is your feature request related to a problem? Please describe.

When Vim mode is enabled, lines which are wrapped into multiple editor rows behave like a single long line, making it difficult to navigate and edit the middle parts of the line.

So, for example, in the screenshot example, if the cursor is set on top of the laboris word and in normal mode, pressing j does not move the cursor to the word reprehenderit, but instead directly to line number 2, which is 4 editor rows below. Similarly, pressing 0 does not move the cursor to the beginning of the word nostrud, but to the word Lorem 3 rows above.

image

In contrast, when Sublime mode is enabled, each row in the wrapped line can be navigated individually with the arrows or Home+End keys.

Describe the solution you'd like

I would like navigation keys h j k l $ 0... to allow moving the cursor between different rows of the wrapped long line like arrows do in Sublime mode.

主要语言
没有语言数据
星标
40
派生
9
PR 合并指标
30 天内没有已合并 PR

环境准备

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

从这里开始

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

hackmdio/hackmd-io-issues 的其他 Issue

查看 hackmdio/hackmd-io-issues 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

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