Giter Site home page Giter Site logo

Comments (11)

nightwing avatar nightwing commented on July 29, 2024 1

Looks like when adding vim keymap you are removing the https://codemirror.net/docs/ref/#commands.standardKeymap so commands added by it like Backspace, Delete or Enter are missing.

from codemirror-vim.

nightwing avatar nightwing commented on July 29, 2024

This does not seem to be related to codemirror-vim, because deleting text in insert mode is handled by codemirror itself, not by vim plugin.

from codemirror-vim.

oeyoews avatar oeyoews commented on July 29, 2024

But if cm6 does not enable vim mode, there will be no such problem.

from codemirror-vim.

oeyoews avatar oeyoews commented on July 29, 2024
Screenity.video.-.Jan.10.2024.1.mp4

from codemirror-vim.

nightwing avatar nightwing commented on July 29, 2024

is there a way to load https://cm6-bug-on-tiddlyhost.tiddlyhost.com/ with non-minimized code?

from codemirror-vim.

oeyoews avatar oeyoews commented on July 29, 2024

tiddly-gittly/Modern.TiddlyDev#60, I tried it, and there seems to be something wrong with this packaged framework.

from codemirror-vim.

nightwing avatar nightwing commented on July 29, 2024

One part of the issue is that LineBreakPlaceholder = "\uffff"; is turned to kn = ""; in minification, leading to "".split("") returning [], while "".split("\uffff") would return [""].

Another part, which may explain why the issue does not happen without vim, is that applyDOMChange in codemirror is being triggered when deleting text even though in other places it is being handled directly from delete keypress, but i did not figure out yet why is that happening.

from codemirror-vim.

oeyoews avatar oeyoews commented on July 29, 2024

For additional information, if press enter to nextline on vim insert tmode, codemirror6 editor not update(These problems will not be triggered when running locally or on the github web pages, which is very strange)

from codemirror-vim.

oeyoews avatar oeyoews commented on July 29, 2024

Indeed, when opening vimmode, I did not add defaultkeymap, which caused an error. Now I have fixed it, but what I am most curious about is why this bug is not triggered locally or on other websites. It only occurs on tiddlyhost

from codemirror-vim.

pmario avatar pmario commented on July 29, 2024

@oeyoews can this issue be closed here?

from codemirror-vim.

nightwing avatar nightwing commented on July 29, 2024

Most likely locally you don't have LineBreakPlaceholder bug, so pressing enter there would work as it does on contenteditable node, but would not indent code.

from codemirror-vim.

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.