Skip to content

ELYTerminal 0.2.5

Choose a tag to compare

@Raiden-MeixElysia Raiden-MeixElysia released this 15 Nov 18:55
53de4e7

Added:

  • Panes: a session splits right or down, each pane its own terminal running the pane's program again in its folder; a session Windows handed over splits into the default shell. Cmd-D and Cmd-Shift-D split, Cmd-] and Cmd-[ step, Cmd-W closes the focused pane and its last closes the session; on Windows and Linux Ctrl-Shift-E, Ctrl-Shift-O, Ctrl-Shift-N, Ctrl-Shift-P and Ctrl-Shift-W. The row's mark, the title, Files and Git follow the pane that holds the keys (#96).
  • Windows: ELYTerminal can be the default terminal. Settings › Terminal › Default terminal makes console programs started without a terminal, from Run and other apps, open as sessions, for your account alone; Restore hands the choice back to Windows. Windows' own list of default terminals shows packaged apps only, so ELYTerminal is not listed there. Tested on Windows 11 with Windows Terminal installed (#93).
  • Quit from the menu or its key, closing the window and closing the last session or pane ask first while a program runs in a pane; Settings › Terminal › Ask before closing running sessions, on by default. On macOS, Quit from the Dock and logging out still quit at once: gpui offers no way to ask there (#92).
  • A paste of more than one line asks first while the program has not asked for bracketed paste, showing its first 8 lines; Settings › Terminal › Ask before a risky paste, on by default (#97).
  • Full screen: Ctrl-Cmd-F on macOS, also View › Toggle Full Screen, and F11 on Windows and Linux, where F11 no longer reaches the program; Shortcuts can unbind it (#94).
  • elyterminal [-d FOLDER] -e PROGRAM [ARG...] runs PROGRAM as the first session, without shell integration; the desktop entry names it for xdg-terminal-exec (#91).
  • A selection dragged past the terminal's top or bottom scrolls the history and keeps selecting, faster the farther the pointer goes; a wheel or trackpad scroll during the drag carries the selection too. A real drag was tested on macOS; Linux and Windows ran the tests (#98, #104).

Fixed:

  • Windows: MSYS2's fish loads its shell integration, and Files follows its folder. Tested with MSYS2's fish 4.9.3; Cygwin was not tried (#103).
  • A settings file from 0.2.4 that gives another command a key 0.2.5 adds, such as F11 or Cmd-D, still starts: the key you chose wins, and the log names the command that gave it up.

Answered, not changed: ░▒▓ stay a translucent fill of the cell, as Ghostty draws them (#101). On a see-through window Windows Terminal draws grayscale text too; #102 waits for a matched pair of screenshots.

Thanks to @rainsuki3527, @YangTengYi, @WhiteGiverMa, @vlate, @balabalabutton, @yettocom, @LiYian2 and @TriSeTide for the issues.

新增:

  • 窗格:会话可向右或向下拆分,每个窗格是一个独立终端,在原窗格的文件夹里再运行它的程序;Windows 交接来的会话拆分时运行默认 shell。macOS 上 Cmd-D、Cmd-Shift-D 拆分,Cmd-]、Cmd-[ 切换,Cmd-W 关闭当前窗格,最后一个窗格关闭会话;Windows 和 Linux 上是 Ctrl-Shift-E、Ctrl-Shift-O、Ctrl-Shift-N、Ctrl-Shift-P 和 Ctrl-Shift-W。会话行的标记、标题、文件栏和 Git 跟随持有键盘的窗格(#96)。
  • Windows:ELYTerminal 可以作为默认终端。设置 › 终端 › 默认终端 让不带终端启动的控制台程序(来自「运行」或其他程序)在 ELYTerminal 中打开,仅对当前用户生效;「还原」把选择交还给 Windows。Windows 自己的默认终端列表只列出打包应用,ELYTerminal 不在其中。在装有 Windows Terminal 的 Windows 11 上测过(#93)。
  • 窗格里有程序在运行时,从菜单或快捷键退出、关闭窗口、关闭最后一个会话或窗格会先询问;设置 › 终端 › 关闭运行中的会话前确认,默认开启。macOS 上从 Dock 退出或注销仍会直接退出:gpui 没有提供在那里询问的办法(#92)。
  • 程序未开启括号粘贴时,粘贴多行内容会先询问,并列出前 8 行;设置 › 终端 › 危险粘贴前确认,默认开启(#97)。
  • 全屏:macOS 上 Ctrl-Cmd-F,也在 显示 › 切换全屏;Windows 和 Linux 上 F11,F11 不再传给程序;可在 快捷键 里去掉(#94)。
  • elyterminal [-d FOLDER] -e PROGRAM [ARG...] 把 PROGRAM 作为第一个会话运行,不加载 shell 集成;桌面条目为 xdg-terminal-exec 写明了它(#91)。
  • 拖动选区越过终端顶部或底部时,历史随之滚动,选区继续延伸,离边缘越远滚得越快;拖动时用滚轮或触控板滚动,选区也随之延伸。真实拖动在 macOS 上测过,Linux 和 Windows 跑了测试(#98、#104)。

修复:

  • Windows:MSYS2 的 fish 会加载 shell 集成,文件栏跟随它的目录。用 MSYS2 的 fish 4.9.3 测过,没有测 Cygwin(#103)。
  • 0.2.4 的设置文件如果把 0.2.5 新增的按键(如 F11 或 Cmd-D)分给了别的命令,仍能正常启动:以你选的为准,日志里会写明让出按键的命令。

已答复、未改动:░▒▓ 保持整格半透明填充,与 Ghostty 一致(#101)。透明窗口下 Windows Terminal 同样画灰度字;#102 等待一组对照截图。

感谢 @rainsuki3527、@YangTengYi、@WhiteGiverMa、@vlate、@balabalabutton、@yettocom、@LiYian2 和 @TriSeTide 的反馈。