iTerm2 在全屏应用上向下滑动

iTerm2 slide down over full screen app

我的 IDE (phpStorm) 始终处于全屏模式 (Yosemite)。

我想让我的 iTerm2 热键将我的终端 window 向下滑动到 IDE 上,这样它就不会为终端 window 打开一个新的 space .一旦 window 向上滑动,它就会让我处于空白状态 space,而不是回到 phpStorm。

不幸的是,目前这是不可能的。查看讨论 here and here. Apps like Quicksilver, Alfred, and Dash are able to do it, so it is technically possible - just not implemented by George. It may become a moot point for these use cases when we get El Capitan's Split View

Attention! See Update3 for new iTerm versions (works for 2.1.5)

原答案

此命令允许 iTerm 在全屏应用程序上工作

defaults write ~/Applications/iTerm.app/Contents/Info LSUIElement true

但它隐藏了 iTerm 的上下文菜单。要访问 iTerm 的首选项,请右键单击选项卡栏和 select 正确的菜单项;或关注任何 iTerm 的 window 并按 -,.

更新

If you use the beta version of iTerm, there is no need to run the previous command. You can turn on Preferences > Advanced > Hide iTerm2 from the dock and from the -Tab app switcher.

Also make sure that the profile you use for the dropdown window (Hotkey window by default) is allowed on all spaces (Preferences > Profiles > "Hotkey window" profile > "Window" tab > Space: "all spaces").

Remember to restart iTerm2.

更新 2

If you can't find Preferences, use the shortcut -i or Right Click in an open iTerm2 terminal window, then select "Edit Session".

更新 3

In 2.1.5, you should use the "Exclude from Dock and ⌘-Tab Application Switcher" option in Preferences -> Appearance. When iTerm2 is excluded from the dock, you can always get back to the Preferences window using the status bar item, or -,. Look for an iTerm2 icon on the right side of your menu bar.

更新 4

在 v.3.4.15 中,您应该关注@Sudhi 的评论。配置文件 -> 特定配置文件 -> 键 -> “热键打开专用 window 使用此配置文件”并配置热键。

TLDR watch a video I created

第一步热键

创建专用热键Window

Preferences > Keys > 单击 Create Dedicated Hotkey Window

通过按 Click to Set 设置热键(然后按您想要的组合键)

第 2 步浮动焦点

使该应用位于工作区中当前所有应用的上方并保持焦点(在上面的同一对话框中)

  • 勾选Pin hotkey window(stays open on loss of keyboard focus)
  • 勾选Floating window

第 3 步造型

创建热键终端时会创建一个新配置文件(通常命名为 "Hotkey Window"),根据需要更新配置文件

其他注意事项

  • 要启用某些更改,您需要重新启动 iTerm

  • 您将使用特定的热键来调出叠加层

  • 您可能还想访问首选项,command-,

  • 如果使用旧版本的 iTerm here is the previous video

我想建议 . And 的一个变体不再是最新的,一些选项被删除,一些被更改,我正在使用 iTerm Build 3.2.0beta4

  1. 创建并分配热键

    Preferences > Keys > 单击 Create Dedicated Hotkey Window

    1. 按照说明设置热键。
    2. 检查 pin 热键 window浮动 window
  2. 创建window排列

    这就是我的答案不同之处,Marc 的答案依赖于让 iTerm 默认以热键配置文件启动,如果您需要一个简单的标准,这可能会很麻烦 window。相反,这个答案建议使用 iterm 的 window 排列。

    1. 所以打开一个热键window
    2. 确保所有 window 与另一个配置文件(通常命名为 Default)都已关闭。唯一剩余的活动(隐藏或不隐藏)window 应该是热键 window.
    3. 保存排列,Window > Save Window Arrangement
    4. 确保此排列是默认排列

      Preferences > Arrangements > Select排列并点击Set Default

    5. 在preference里,让iterm以默认排列开头。 :

      Preferences > General > Startup > Select Open Default Window Arrangement

  3. 可选地调整热键 window 外观