Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/components/element/VmIde.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2775,14 +2775,18 @@ export default {
}
},
handleFind() {
// TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT
// Open custom Find/Replace modal in find mode
this.findReplaceMode = 'find';
this.showFindReplaceModal = true;
// this.findReplaceMode = 'find';
// this.showFindReplaceModal = true;
console.log('[FIND DISABLED] Find feature temporarily disabled for file handling assignment');
},
handleReplace() {
// TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT
// Open custom Find/Replace modal in replace mode
this.findReplaceMode = 'replace';
this.showFindReplaceModal = true;
// this.findReplaceMode = 'replace';
// this.showFindReplaceModal = true;
console.log('[REPLACE DISABLED] Replace feature temporarily disabled for file handling assignment');
},
handleComment() {
// Toggle comment in the active editor
Expand Down
5 changes: 3 additions & 2 deletions src/components/element/pages/ide/KeyboardShortcutsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@
<span class="shortcut-action">Paste</span>
<span class="shortcut-keys">Ctrl+V</span>
</div>
<div class="shortcut-item">
<!-- TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT -->
<!-- <div class="shortcut-item">
<span class="shortcut-action">Find</span>
<span class="shortcut-keys">Ctrl+F</span>
</div>
<div class="shortcut-item">
<span class="shortcut-action">Replace</span>
<span class="shortcut-keys">Ctrl+H</span>
</div>
</div> -->
<!-- <div class="shortcut-item">
<span class="shortcut-action">Comment/Uncomment</span>
<span class="shortcut-keys">Ctrl+/</span>
Expand Down
32 changes: 17 additions & 15 deletions src/components/element/pages/ide/TwoHeaderMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@
</button>
</li>
<li class="nav__dropdown-divider"></li>
<li class="nav__dropdown-item">
<!-- TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT -->
<!-- <li class="nav__dropdown-item">
<button @click="find()">
<span>Find</span>
<span class="nav__keyboard-shortcut">Ctrl+F</span>
Expand All @@ -120,8 +121,8 @@
<span>Replace</span>
<span class="nav__keyboard-shortcut">Ctrl+H</span>
</button>
</li>
<li class="nav__dropdown-divider"></li>
</li> -->
<!-- <li class="nav__dropdown-divider"></li> -->
<li class="nav__dropdown-item">
<button @click="comment()">
<span>Comment</span>
Expand Down Expand Up @@ -520,20 +521,21 @@ export default {
this.paste();
return;
}
// TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT
// Ctrl+F - Find
if (e.ctrlKey && !e.shiftKey && e.key === 'f') {
e.preventDefault();
e.stopPropagation();
this.find();
return;
}
// if (e.ctrlKey && !e.shiftKey && e.key === 'f') {
// e.preventDefault();
// e.stopPropagation();
// this.find();
// return;
// }
// Ctrl+H - Replace
if (e.ctrlKey && !e.shiftKey && e.key === 'h') {
e.preventDefault();
e.stopPropagation();
this.replace();
return;
}
// if (e.ctrlKey && !e.shiftKey && e.key === 'h') {
// e.preventDefault();
// e.stopPropagation();
// this.replace();
// return;
// }
// Ctrl+/ - Comment
if (e.ctrlKey && e.key === '/') {
e.preventDefault();
Expand Down
3 changes: 2 additions & 1 deletion src/components/element/pages/ide/editor/CodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ export default {

'Ctrl-Enter': 'insertLineAfter',
'Shift-Ctrl-Enter': 'insertLineBefore',
'Ctrl-H': 'replace',
// TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT
// 'Ctrl-H': 'replace',
'Backspace': (cm) => {
if (cm.somethingSelected())
cm.replaceSelection('', cm.getSelection());
Expand Down