Comments (17)
After checking, I found that Unikey used Backspace. There was a conflict between your extension and Unikey.
I'm trying to fix my own problem. If I could solve them, I will give you a pull as a patch for those who use Unikey.
from vscode-markdown.
That's really strange.
I don't know Unikey but I guess it automatically replaces Mo65t
with Một
when you are typing. Since Mo65t
was replaced to Mot
in your case, I think Unikey did do its operation but there is something wrong.
As for the extension, it will listen to Enter, Tab and Escape keys and will do some different operations when you are editing Markdown list. Are you using this keys?
from vscode-markdown.
Thanks for you information.
I will check it on my Laptop then feedback to you.
from vscode-markdown.
@neilsustc
I solved my problem but it didn't work at all cases.
If I typed "Mo65t", it works well. But when I typed "Mot65", it doesn't work.
By the way, do you know how to extend Default Key Handler?
For example:
if (something) {
doCustomFunction();
} else {
callDefaultHandler();
}
from vscode-markdown.
If you are talking about vscode key handler, it can be override by add new keyboard shortcuts which execute your code.
if (your condition) {
// your code here
} else {
// default behavior
}
from vscode-markdown.
Here is where I override the default backspace key.
It will execute these code.
from vscode-markdown.
@neilsustc : No, I want to ask to use the default handler.
If you disable all extension, when you press backspace, the default handler will be executed.
Command "deleteLeft" is just a case of the default handler. That's the reason why I can use Unikey by disabling your extension.
from vscode-markdown.
Okay, that is the problem.
But according to vscode doc, I think deleteLeft
should be the default handler. Maybe we should report this to vscode?
from vscode-markdown.
The only one "backspace" in the default keybindings
from vscode-markdown.
@neilsustc When I press "backspace", it delete 4 spaces. But when I use "deleteLeft", it just delete one space. I think we should report to VSCode. (In MacOS only, In Windows, OK).
As I know, VSCode solved the problem of Vietnamese Input a year ago.
from vscode-markdown.
Have you ever tried to change the onBackspaceKey
function to only execute deleteLeft
, I mean
function onBackspaceKey() {
return commands.executeCommand('deleteLeft');
}
And then test whether the problem is still there?
from vscode-markdown.
Yes, there it is.
"Thien Ha Dai Su" should be replaced "Thiên Hạ Đại Sự"
from vscode-markdown.
Fixed but still has some minor bugs (typing fast).
from vscode-markdown.
I have to disable you handler, because https://github.com/neilsustc/vscode-markdown/blob/master/src/unikeyHandler.ts#L15-L16 results this
from vscode-markdown.
@neilsustc Ok. I have another way to solve my problem. I just need change key "Backspace" to "Shift+Backspace" or "Alt+Backspace". No need to modify the code.
from vscode-markdown.
Good to hear that
from vscode-markdown.
This is now tracked at #200
Thank you again.
from vscode-markdown.
Related Issues (20)
- "markdown.extension.orderedList.autoRenumber" is working when setting is false HOT 2
- Auto update TOC breaks link HOT 7
- support angle brackets in path completion HOT 5
- Problem with checkboxes alignment HOT 2
- Expect to see what it will look like after rendering in the candidate list HOT 2
- When the last character of bolded text is a symbol and the first character immediately after it is a non-symbol, the bold display is abnormal. HOT 1
- "markdown.extension.toc.levels" is ignored when using multi-root workspace HOT 1
- Print Document to HTML: Sometimes Can Not Download CSS HOT 1
- Add intelligent suggestions from at-suggestions.json HOT 1
- add more slugification strategies HOT 7
- Markdown auto deletes Links to other markdown files in some cases HOT 4
- URL is encoded when printing to HTML HOT 3
- Integrate with vim's `o`/`O` key HOT 1
- Copy code of a block code HOT 3
- Add an option to exclude some specific md file to be printed to html on save. HOT 1
- Every time I press tab, enter, delete, etc., it's very laggy and not smooth. Is it possible to optimize the algorithm, or try to use rust to implement the algorithm? HOT 1
- Request for CSS compatibility in markdown preview feature HOT 2
- 🔨 Formatter: Auto add hard line breaks HOT 2
- Auto print to html when css file is changed.
- Add side navigation bar,Jump from anywhere to anywhere while editing
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 vscode-markdown.