hide cursor in ace

This commit is contained in:
tdurieux
2021-04-06 18:17:47 +02:00
parent 19bd0702df
commit d87bd8276f
3 changed files with 14 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ a.black_border:hover {
.files {
position: relative;
display: block;
overflow: scroll;
overflow: auto;
height: 100%;
}
@@ -324,3 +324,7 @@ loc .lang {
line-height: 140px;
text-align: center;
}
.ace_scroller {
cursor: default;
}

View File

@@ -43,7 +43,7 @@
<div class="leftCol shadow p-1 h-100 overflow-auto" ng-show="files">
<tree class="files" file="files"></tree>
</div>
<div class="col p-0 h-100 d-flex flex-column">
<div class="col p-0 h-100 d-flex flex-column w-100 overflow-auto">
<nav aria-label="breadcrumb">
<ol class="breadcrumb shadow paths">
<li class="breadcrumb-item" ng-repeat="p in paths" ng-bind="p">

View File

@@ -377,11 +377,13 @@ angular
fontSize: 15,
keyBinding: "vscode",
fullLineSelection: true,
highlightActiveLine: true,
highlightActiveLine: false,
highlightGutterLine: false,
cursor: "hide",
showInvisibles: false,
showIndentGuides: true,
showPrintMargin: false,
highlightSelectedWord: true,
highlightSelectedWord: false,
enableBehaviours: true,
fadeFoldWidgets: false,
mode: getMode(extension),
@@ -395,6 +397,10 @@ angular
);
_editor.setOption("displayIndentGuides", true);
_editor.setHighlightActiveLine($scope.aceOption.highlightActiveLine);
if ($scope.aceOption.cursor == "hide") {
_editor.renderer.$cursorLayer.element.style.display = "none";
}
_editor.setHighlightGutterLine($scope.aceOption.highlightGutterLine);
_editor.setShowInvisibles($scope.aceOption.showInvisibles);
_editor.setDisplayIndentGuides($scope.aceOption.showIndentGuides);