mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 02:08:28 +02:00
Add bracket matching
This commit is contained in:
1
src-tauri/Cargo.lock
generated
1
src-tauri/Cargo.lock
generated
@@ -8004,7 +8004,6 @@ dependencies = [
|
|||||||
"tauri-plugin",
|
"tauri-plugin",
|
||||||
"tauri-plugin-dialog",
|
"tauri-plugin-dialog",
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
|
||||||
"ts-rs",
|
"ts-rs",
|
||||||
"yaak-common",
|
"yaak-common",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ sha2 = { workspace = true }
|
|||||||
tauri = { workspace = true }
|
tauri = { workspace = true }
|
||||||
tauri-plugin-dialog = { workspace = true }
|
tauri-plugin-dialog = { workspace = true }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
tokio = { workspace = true }
|
|
||||||
ts-rs = { workspace = true, features = ["chrono-impl", "serde-json-impl"] }
|
ts-rs = { workspace = true, features = ["chrono-impl", "serde-json-impl"] }
|
||||||
yaak-common = { workspace = true }
|
yaak-common = { workspace = true }
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,11 @@
|
|||||||
@apply text-surface !important;
|
@apply text-surface !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Matching bracket */
|
||||||
|
.cm-matchingBracket {
|
||||||
|
@apply bg-transparent border-b border-b-text-subtle;
|
||||||
|
}
|
||||||
|
|
||||||
&:not(.cm-focused) {
|
&:not(.cm-focused) {
|
||||||
.cm-cursor, .cm-fat-cursor {
|
.cm-cursor, .cm-fat-cursor {
|
||||||
@apply hidden;
|
@apply hidden;
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { json } from '@codemirror/lang-json';
|
|||||||
import { markdown } from '@codemirror/lang-markdown';
|
import { markdown } from '@codemirror/lang-markdown';
|
||||||
import { xml } from '@codemirror/lang-xml';
|
import { xml } from '@codemirror/lang-xml';
|
||||||
import type { LanguageSupport } from '@codemirror/language';
|
import type { LanguageSupport } from '@codemirror/language';
|
||||||
import {
|
import { bracketMatching ,
|
||||||
codeFolding,
|
codeFolding,
|
||||||
foldGutter,
|
foldGutter,
|
||||||
foldKeymap,
|
foldKeymap,
|
||||||
@@ -258,6 +258,7 @@ export const multiLineExtensions = ({ hideGutter }: { hideGutter?: boolean }) =>
|
|||||||
indentOnInput(),
|
indentOnInput(),
|
||||||
rectangularSelection(),
|
rectangularSelection(),
|
||||||
crosshairCursor(),
|
crosshairCursor(),
|
||||||
|
bracketMatching(),
|
||||||
highlightActiveLineGutter(),
|
highlightActiveLineGutter(),
|
||||||
keymap.of([...searchKeymap, ...foldKeymap, ...lintKeymap]),
|
keymap.of([...searchKeymap, ...foldKeymap, ...lintKeymap]),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user