mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(edit-file-vim) editor: add vim mode on shift + f4
This commit is contained in:
parent
c068a99e76
commit
06c9663ae9
9 changed files with 233 additions and 7 deletions
|
|
@ -84,6 +84,14 @@ function EditProto(callback) {
|
|||
return;
|
||||
|
||||
CloudCmd.View.show(Element, initConfig(options));
|
||||
|
||||
Edit.getEditor()
|
||||
.setOptions({
|
||||
keyMap: 'default',
|
||||
fontSize: 16,
|
||||
});
|
||||
|
||||
return Edit;
|
||||
};
|
||||
|
||||
Edit.getEditor = () => {
|
||||
|
|
@ -96,6 +104,7 @@ function EditProto(callback) {
|
|||
|
||||
Edit.hide = () => {
|
||||
CloudCmd.View.hide();
|
||||
return Edit;
|
||||
};
|
||||
|
||||
function _loadFiles(element, callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue