Giter Club home page Giter Club logo

Comments (10)

kerhbal avatar kerhbal commented on May 29, 2024 1

@spencerwooo @printempw 多谢两位,我这也没问题了

from dowww.

spencerwooo avatar spencerwooo commented on May 29, 2024

这个是一个 zsh-autosuggestion 插件的问题,我也遇到了,目前不知道怎么解决,这个 Issue 我先开放着,遇到新的解决方法我也会在这里更新。

from dowww.

kerhbal avatar kerhbal commented on May 29, 2024

问题是我没有安装那个插件。。。本来不太确定有没有安,然后去文件夹 ~/.oh-my-zsh/custom/plugins 里看了一下确实没有
snipaste_2018-10-31_11-07-19

from dowww.

spencerwooo avatar spencerwooo commented on May 29, 2024

看一下 .zshrc 里面的插件有没有,我不确定是不是这个的问题,因为这个空格问题时好时坏,我只是觉得是由于 zsh-autosuggestions 引起的,如果我有新的发现我也会更新在这里的。

from dowww.

kerhbal avatar kerhbal commented on May 29, 2024

我这也是时好时坏,.zshrc 里也没有
snipaste_2018-10-31_11-23-51

from dowww.

prinsss avatar prinsss commented on May 29, 2024

我使用 Hyper 时也出现过这个问题,这似乎是 Hyper 对于全角 Unicode 字符的支持不完善造成的。oh-my-zsh 的默认主题中的提示符中有个宽度为 2 个半角字符的 字符(~/.oh-my-zsh/themes/robbyrussell.zsh-theme),我将其修改为 > 后光标位置就正常了。

from dowww.

spencerwooo avatar spencerwooo commented on May 29, 2024

@printempw 原来如此,这个问题确实在我换掉 robbyrussell 主题之后解决了,看来问题确实出在这里,感谢。
@kerhbal 这个问题解决了,我将这部分也更新到参考文档里面。
谢谢两位的反馈。🌹

from dowww.

spencerwooo avatar spencerwooo commented on May 29, 2024

@kerhbal 这部分内容的解决方案我更新到文档的这里了 > zsh & oh-my-zsh,希望您有时间试一下这个方法有没有什么缺陷,我自己尝试是完美解决了。如果没有什么问题的话我就关掉这个 Issue 了~

from dowww.

Whale-fall avatar Whale-fall commented on May 29, 2024

我使用 Hyper 时也出现过这个问题,这似乎是 Hyper 对于全角 Unicode 字符的支持不完善造成的。oh-my-zsh 的默认主题中的提示符中有个宽度为 2 个半角字符的 字符(~/.oh-my-zsh/themes/robbyrussell.zsh-theme),我将其修改为 > 后光标位置就正常了。

好奇修改unicode是哪一项啊,不知道通过哪一项修改。

from dowww.

spencerwooo avatar spencerwooo commented on May 29, 2024

@Whale-fall 如果你说的是 oh-my-zsh 的默认主题修改哪里的话,就是在 robbyrussell.zsh-theme 里面第一行下图箭头所指位置,我将其改成了 $,原来是全角箭头。

image

如果不是这样意思的话。。我也不知道了哈哈

from dowww.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.