Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议采用CodeMirror编辑器,便于快捷键映射 #2

Closed
dnknn opened this issue Aug 3, 2020 · 2 comments
Closed

建议采用CodeMirror编辑器,便于快捷键映射 #2

dnknn opened this issue Aug 3, 2020 · 2 comments

Comments

@dnknn
Copy link

dnknn commented Aug 3, 2020

  iCode 非常简约优秀, 但是可否支持Sublime按键映射或采用CodeMirror编辑器

Can support ⌨ Sublime keyboard mapping for CodeMirror-editor❓ 👇


Why ? because it's hotkey is very versatile and powerful , It is the same shortcut key in many places,,
E.g 🐵Tampermonkey  or Stylus .etc

Stylus 是一款 🅲🆂🆂 样式专用的浏览器扩展

https://chrome.google.com/webstore/detail/clngdbkpkpeebahjckkjfobafhncgmne

Tampermonkey Stylus 都默认使用Sublime按键映射, 非常方便好用.

Sublime

☝The gif demo above is a Chrome-extension of Stylus

Most useful ⌨ to
Ctrl+Shift+D duplicate line
Ctrl+Shift+⇅ exchange line
Ctrl+D Highlight matching & multi-point selection
Alt+F3 Match all highlights
Ctrl+J Join line
Ctrl+Enter↵ insert Line After
Ctrl+Shift+Enter↵ insert Line before
F2/Ctrl+F2 bookmarks
.etc .etc

0713225616

But the current default Ctrl+D is to delete line.

Stylus浏览器扩展的编辑器和Tampermonkey浏览器扩展的编辑器都默认用Sublime按键映射

They all use CodeMirror, and then the same optional keyboard mapping👇 Can refer to them👇
Their default options are also Sublime , Only Sublime has the most hotkeys.
0714000222

Stylus

@atjason
Copy link
Owner

atjason commented Aug 3, 2020

很棒的建议,欢迎提交代码 😂

@dnknn
Copy link
Author

dnknn commented Aug 3, 2020

很棒的建议,欢迎提交代码 😂

好像就是用CodeMirror编辑器, 只是没有使用高级按键映射而已对吧

@dnknn dnknn closed this as completed Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants