-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: code tools, editor, executor #4632
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
alephpiece
wants to merge
166
commits into
CherryHQ:main
Choose a base branch
from
alephpiece:feat/code-tools-editor-executor
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
feat: code tools, editor, executor #4632
alephpiece
wants to merge
166
commits into
CherryHQ:main
from
alephpiece:feat/code-tools-editor-executor
+6,219
−1,900
Conversation
This file contains 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
DeJeune
approved these changes
Apr 17, 2025
eeee0717
approved these changes
Apr 17, 2025
main 分支的代码块好像有问题,代码块右下角好像有什么隐藏元素,我没细看。这个pr好像没有,不知道是哪里引入的 |
网页预览那个按钮隐藏了不太方便看了,最好能在下面再加回来 |
我看看 |
嗯嗯 个人认为像bash这样的 应该用不到下载保存之类的功能吧 |
这样的话似乎需要匹配所有shell类型的?
我可以加条件给这些工具,或者干脆全部隐藏,只在鼠标放到代码块上才显示,你看哪个合适 |
感觉隐藏起来会显得干净点 |
没必要单独处理吧,选择权给用户好了,用户不想下载自然不会点击 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
主要改动
代码编辑器
现在可以在设置中切换到代码编辑器。
统一代码块工具栏
更多
按钮中,避免拥挤,核心工具总是会显示。代码执行
相关 issues
演示
代码编辑器
通过设置中的
代码编辑器
启用。编辑后需要手动保存。
工具栏
图片预览视图中(如 mermaid),鼠标悬停时显示显示工具栏,源代码视图中,始终显示工具栏。
代码运行
目前只支持 python 执行。Python 代码块的工具栏会出现执行按钮。
具体改动
CodeBlockView
代码编辑器,代码预览
代码执行
其他