Skip to content
Published at:

来玩一玩件值一个亿的终端软件-Warp

一个叫Warp的终端软件融资 2300 w 美元https://www.warp.dev/blog/introducing-warp

一个好的故事:

https://www.warp.dev/blog/introducing-warp Walk by any developer’s desk and you are likely to see two apps open: their code editor and their terminal (sometimes the code editor is the terminal!). ‍

Both are crucial to developer productivity. The code editor is where developers write code; the terminal is where they do pretty much everything else, from building code to running and deploying it, interacting with source control, configuring their cloud systems, and more.

And yet only one of these two apps – the code editor – has experienced meaningful product improvement over the past 40 years. Compared to using VS Code, using the terminal is like stepping back in time to the 1970s. Only 70% of developers use VSCode, while 100% use the terminal. So why is the terminal experience still so lackluster?

程序员最重要的两个工具:

  • Coder editor
  • Terminal:编译,运行,部署,代码版本管理,配置云服务器......
  • Browser浏览器

Coder editor在过去40年一直在改善,而Terminal用起来还是最开始的那个样子。 个人觉得:后半句只是对了一半,提示、补全、搜索、主题都在发展,没有被整合起来

现今Terminal面临的问题:

  • Terminals are hard to use难用
  • They don’t work for teams不是为团队协作设计的

特性:

  • Command Palette
  • The Input / Text Editor
  • Blocks
  • Find
  • Command History
  • Autosuggestions
  • Completions
  • Themes
  • Prompt
  • Split Panes
  • Session Management and Restoration
  • Workflows
  • Global Hotkey Window
  • A.I. Command Search

Command Palette

快捷键:CMD + P

Terminal上所有的功能,几本上都这个通过这个搜索框去执行,还能模糊匹配;如果忘记某些功能的快捷键了,可以通过这个来搜索

这个功能应该是借鉴Sublime Text 、VSCode

The Input / Text Editor

Blocks块

概念:一次命令的执行称为一个块。

  • copy命令
  • copy命令的输出
  • 直接划到命令输出开始的地方
  • 重新输入这个命令
  • 共享这个命令和输出

在Blocks之间转跳:CMD-UPCMD-DOWN,之后按上和下就可以了

Find查找

  • 支持大小写匹配
  • 支持锁定Blocks

可以考虑下支持正则表达式

Command History命令历史记录

快捷键:Ctrl + R

  • 支持模糊匹配

fzf的Ctrl + R搜索历史记录https://github.com/junegunn/fzf#key-bindings-for-command-line

Autosuggestions自动提示

快捷键:方向右键CTRL-F. (F:forward)

Completions补全

快捷键:TAB,之后按上和下选择

Themes主题

https://github.com/warpdotdev/themes/tree/19436d99f71d6d55137bcf8f5475ea13056e7add#open-source-dependencies

We'd like to call out a few of the open source themes and repositories that helped bootstrap the set of themes for Warp:

  • iTerm colors pencil
  • Alacritty-theme
  • base16-Alacritty
  • base16
  • Solarized
  • Dracula
  • Gruvbox

Prompt

分Warp和用户自定义的

  • 开启自定义:Settings > Features 打开Honor user's custom prompt (PS1) setting.

ohmyzsh + spaceship prompt

Split Panes分屏

Session Management and Restoration

When Warp opens, it restores your session history, specifically windows, tabs, panes, and also the last few Blocks in each pane.

当打开Warp,它会恢复历史会话,窗口,Tabs,面板,以及之前的Blocks;保存到sqlite里面

bash
$ sqlite3 $HOME/Library/Application Support/dev.warp.Warp-Stable/warp.sqlite

用起来很方便;反过来,就会有隐私及安全的顾虑

Workflows

Global Hotkey Window

安装遇到的登录校验问题:

情况:用github账号登录,转跳到Warp之后卡顿,无法登录https://github.com/warpdotdev/Warp/issues/906

  • 需要开代理,在命令行中配置
  • 用命令行去启动Warp
bash
# 在命令行里面配置代理
$ export HTTP_PROXY=http://127.0.0.1:1077
$ export HTTPS_PROXY=http://127.0.0.1:1077

# 启动warp
$ /Applications/Warp.app/Contents/MacOS/stable

Updated at: