Files
Nexus/docs/changelog/2026-06-02-file-editor-word-wrap-default.md
T
Your Name 4b5602a719 feat(files): fix editor freeze, EOL gates, server form and session UX
- FilesPage storeToRefs + remotePath coercion; Monaco preload; list action buttons
- text_io for UTF-8/LF; install/sync EOL; check_shell_eol + check_text_eol gates
- ServerFormDialog, hash login redirect, AppAuth keep-session; design docs and audits

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-03 00:42:55 +08:00

724 B

2026-06-02 文件编辑器自动换行默认开启 + 文字按钮

变更摘要

浮动文件编辑器工具栏将自动换行从图标按钮改为「自动换行」文字按钮;默认开启换行(wordWrap: on)。

动机

图标不够直观;运维编辑配置类文件时默认需要换行查看长行。

涉及文件

  • frontend/src/components/FileEditorWorkbench.vue

是否需迁移/重启

  • 仅前端构建部署。

验证方式

  1. 打开文件编辑器,工具栏显示「自动换行」文字(高亮表示已开启)。
  2. 长行在编辑区内折行显示;点击按钮或 Alt+Z 可关闭/再开启。

回滚方式

恢复 wordWrap 默认 false 及图标按钮即可。