Skip to content

Commit

Permalink
feat: adjust completion height
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Oct 8, 2024
1 parent ab306d9 commit 02f1c4a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<h2> Changelog </h2>

* `3.3.0`: 调整补全弹窗最大高度
* `3.2.0`: 支持高亮显示回车换行符号
* `3.1.1`: 修改fields 正则表达
* `3.1.0`: 动态加载补全
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"registry": "https://registry.npmjs.org"
},
"license": "MIT",
"version": "3.2.0",
"version": "3.3.0",
"packageManager": "pnpm@9.0.6",
"scripts": {
"update:config": " pnpm ts-node scripts/generateConfig.ts",
Expand Down
9 changes: 8 additions & 1 deletion src/tiddlywiki-codemirror-6/modules/extensions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,14 @@ export default function updateExtensions(cme: Extension[], widget: IWidget) {
conf.highlightNewLine() && cme.push(highlightNewLine);
cme.push(rainbowBracketsWithText());

conf.lineNumbers() && conf.foldGutter() && cme.push(foldGutter());
conf.lineNumbers() &&
conf.foldGutter() &&
cme.push(
foldGutter({
// closedText: '▶',
// openText: '▼'
})
);

conf.highlightActiveLine() &&
cme.push(highlightActiveLineGutter(), highlightActiveLine());
Expand Down
2 changes: 1 addition & 1 deletion src/tiddlywiki-codemirror-6/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"title": "$:/plugins/oeyoews/tiddlywiki-codemirror-6",
"name": "CodeMirror6",
"description": "CodeMirror 6 editor",
"version": "3.2.0",
"version": "3.3.0",
"core-version": ">=5.3.4",
"list": "readme changelog"
}
6 changes: 5 additions & 1 deletion src/tiddlywiki-codemirror-6/tiddlers/styles/styles.tid
Original file line number Diff line number Diff line change
Expand Up @@ -504,4 +504,8 @@ li[aria-selected] {
}
<!-- .cm-trailingSpace::before {
content: "␣" !important;
} -->
} -->

.cm-tooltip.cm-tooltip-autocomplete > ul {
max-height: 15em !important;
}
4 changes: 3 additions & 1 deletion tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@
* Prese `ctrl + /` to comment line(non vimmode)
* vimmode: `"+y`(copy to system clipboard)
* vimmode: `"+p`(paste system clipboard to editor)
* trigger 的触发时根据正则表达式来检测的, 所以触发器的前面不能紧挨着其他字符, 比如 `xxx/`这种是不行的, 需要是`xxx /` 这种.
* trigger 的触发时根据正则表达式来检测的, 所以触发器的前面不能紧挨着其他字符, 比如 `xxx/`这种是不行的, 需要是`xxx /` 这种.
* (vim) :c(opy) to copy current tiddler text comtent
* vim 也支持直接 ctrl + c 复制了

0 comments on commit 02f1c4a

Please sign in to comment.