Comments (11)
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.
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.
But if cm6 does not enable vim mode, there will be no such problem.
from codemirror-vim.
Screenity.video.-.Jan.10.2024.1.mp4
from codemirror-vim.
is there a way to load https://cm6-bug-on-tiddlyhost.tiddlyhost.com/ with non-minimized code?
from codemirror-vim.
tiddly-gittly/Modern.TiddlyDev#60, I tried it, and there seems to be something wrong with this packaged framework.
from codemirror-vim.
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.
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.
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.
@oeyoews can this issue be closed here?
from codemirror-vim.
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)
- New release? HOT 1
- nnoremap i :nohl<CR>i doesn't work
- Insert mode maps don't support character insertion HOT 3
- Vim keybindings don't work with Japanese keyboard HOT 3
- Not changing to Line mode automatically like vim HOT 10
- [Question] Alter an operator HOT 4
- readonly not work on vim mode
- Dead key input treated as insertion in normal mode HOT 1
- Feature: Replacement Preview HOT 2
- WS-2472: Find-backwards <Space> ignored HOT 6
- gk skips a line if cursor is at column 0 position (Obsidian) HOT 4
- CM default indent/dedent of Cmd + Square Brackets is not suppressed when vim is the chosen flavor HOT 3
- Pressing up and down arrow keys at the start of a line behaves strangely shortly after entering insert mode HOT 1
- `j` in visual mode renders offset to actual line when there is empty lines
- Increment zero-padded decimal HOT 3
- The /g flag on :s in Vim mode doesn't work as it should - it only replaces the first occurrence HOT 3
- Implement relative line numbers HOT 2
- Replaying a macro while it is being recorded hangs the page HOT 3
- [Bug] Random input in normal mode with IME HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codemirror-vim.