-
Notifications
You must be signed in to change notification settings - Fork 52
[201_80] 定制化表格handles显示 #2790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AXeonV
wants to merge
4
commits into
main
Choose a base branch
from
ty/201_79
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[201_80] 定制化表格handles显示 #2790
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # [201_80] 定制化表格handles显示 | ||
|
|
||
| ## 如何测试 | ||
| 1. 插入任意样式的表格(大表格、小表格除外),handles应该正确显示,且支持拖拽 | ||
| 2. 插入`align`、`eqnarray`、`gather`、`multline`、`alignat`、`flalign`等数学环境,handles应该不显示,且不支持拖拽 | ||
| 3. 手动修改样式TS文件(`样式`->`编辑样式`),插入 `<assign|table-handles|false>` 后保存 | ||
| 4. 再次插入任意表格,handles应该始终不显示,且不支持拖拽 | ||
|
|
||
| ## 2026/2/9 | ||
| ### What | ||
| 在align环境等数学环境下的所有表格结构的组件,在编辑时,handles都应该不显示,也不应支持拖拽 | ||
|
|
||
| ### How | ||
| 1. 在 `vars.hpp`、 `vars.cpp` 和 `env_default.cpp` 中添加 `TABLE_HANDLES` 环境变量,默认值为 `"true"`,表示表格handles默认显示 | ||
| 2. 在 `edit_repaint.cpp` 中的 `repaint_table_handles` 函数中添加判断,如果当前表格所在环境不是“真表格”(通过 `is_true_table` 判断),则不显示handles;如果 `TABLE_HANDLES` 环境变量值为 `"false"`,则始终不显示handles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.