Poll on iterm2 split panes feature

157 views
Skip to first unread message

George Nachman

unread,
Mar 13, 2011, 7:20:37 PM3/13/11
to iterm2-...@googlegroups.com
I'm thinking about this bug and as a single-profile user, I don't have a feeling what what the right thing to do is. The question is: would you prefer cmd-d/cmd-shift-d to open a new pane with the default profile or the profile of the previously existing pane?

Thanks for your feedback,
g

Chas. Owens

unread,
Mar 13, 2011, 9:31:39 PM3/13/11
to iterm2-...@googlegroups.com, George Nachman

I am pretty sure there isn't one perfect solution. Perhaps the best
solution is to give each profile the option of a split horizontal and
split vertical shortcut. So, on the General tab of the Profiles, it
would look like this

new tab key: Ctrl-Cmd <drop down of keys>
split pane vertically key: Cmd <drop down of keys>
split pane horizontally key: Cmd <drop down of keys>

or better yet, drop shortcut key from the General tab and provide
primitives to open each profile as a new tab, hsplit, or vsplit in the
Keys tab. It would be nice if the drop down was nested like

Backward in Time
Forward in time
------------------
New Tab using profile >
New Vertical using profile Split >
New Horizontal Split using profile >

where the nested drop down list was a list of profiles.

--
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

yokull

unread,
Mar 21, 2011, 7:30:49 PM3/21/11
to iterm2-discuss
i think the best thing to do (other than customize) is to try to keep
it somewhat consistent with what other programs do in similar
situations (e.g., vim, tmux, screen, emacs, etc.)
or even what you'd expect with other apps on mac
a somewhat consistent experience across the whole platform is probably
the ideal

not the best answer, but it might allow others to offer up more
suggestions

On Mar 13, 4:20 pm, George Nachman <gnach...@llamas.org> wrote:
> I'm thinking about
> this<http://code.google.com/p/iterm2/issues/detail?id=443&q=type%3DEnhance...>bug

Chas. Owens

unread,
Mar 21, 2011, 8:26:58 PM3/21/11
to iterm2-...@googlegroups.com, yokull
On Mon, Mar 21, 2011 at 19:30, yokull <yokull...@mailinator.com> wrote:
> i think the best thing to do (other than customize) is to try to keep
> it somewhat consistent with what other programs do in similar
> situations (e.g., vim, tmux, screen, emacs, etc.)
> or even what you'd expect with other apps on mac
> a somewhat consistent experience across the whole platform is probably
> the ideal
snip

Well, lets look at what they do:

vim: splits show the same file in both windows
emacs: splits show the same file in both windows
tmux: a split opens the default command
screen: a split opens an empty region
dvtm: new windows use the default command

So, the text editors agree, tmux and dvtm agree, but the two sets
don't agree, and screen does something completely different. All of
them provide a way to specify what to use for the split and all of
them provide a method of mapping a command to a keystroke (or set of
keystrokes). Given this, I would expect iTerm to open the default
profile on a split, but to let me define key strokes to open specific

Cadillackid

unread,
Mar 25, 2011, 3:25:55 PM3/25/11
to iterm2-discuss
im new here.. but I would vote to have a Split use the same profile
and command that the window you are splitting used by default..
having it ask would be really nice too...
im not yet sure how to use the key mappings as im also new to the
whole world of MAC in general so im learning... always been linux and
windoze user...
-Christopher

On Mar 21, 8:26 pm, "Chas. Owens" <chas.ow...@gmail.com> wrote:

George Nachman

unread,
Apr 1, 2011, 1:38:43 AM4/1/11
to iterm2-...@googlegroups.com, Cadillackid
Ok, this has been submitted in r737 and will appear in the next nightly build.

Tim Gray

unread,
Apr 4, 2011, 8:52:12 AM4/4/11
to iterm2-discuss
On Mar 13, 7:20 pm, George Nachman <gnach...@llamas.org> wrote:
> The question is: would you prefer cmd-d/cmd-shift-d to open
> a new pane with the default profile or the profile of the previously
> existing pane?

Personally, I like to split the current session. That way I can refer
to something that happened previously. If I need a new session, I'm
much more likely to make a new window or tab.

Craig Paterson

unread,
Apr 4, 2011, 11:38:41 AM4/4/11
to iterm2-...@googlegroups.com

Agreed.

George Nachman

unread,
Apr 4, 2011, 1:48:48 PM4/4/11
to iterm2-...@googlegroups.com, iterm2-...@googlegroups.com
The set mark/jump to mark feature is meant to address this case.

Tim Gray

unread,
Apr 4, 2011, 1:57:20 PM4/4/11
to iterm2-...@googlegroups.com
On Apr 04, 2011 at 10:48 AM -0700, George Nachman wrote:
>The set mark/jump to mark feature is meant to address this case.

While I didn't know about that feature (thanks for telling us about it), it's
not particularly useful if you want to look at something as a reference while
typing a line in in the same session.

Cadillackid

unread,
Apr 5, 2011, 9:06:35 AM4/5/11
to iterm2-discuss
Thank you for adding the split pane feature to use the already loaded
profile.. I really Like it! makes it much easier to work with say 4
windows into the same server.
is there a way to change a currently open pane to a different profile?
is that the mark / jump you are talking of?
-Christopher

On Mar 13, 7:20 pm, George Nachman <gnach...@llamas.org> wrote:
> I'm thinking about
> this<http://code.google.com/p/iterm2/issues/detail?id=443&q=type%3DEnhance...>bug

Chas. Owens

unread,
Apr 5, 2011, 9:15:02 AM4/5/11
to iterm2-...@googlegroups.com, Cadillackid
On Tue, Apr 5, 2011 at 09:06, Cadillackid <eldor...@yahoo.com> wrote:
snip

> is there a way to change a currently open pane to a different profile?
snip

No. Profiles only make sense when starting a tab or a split. What
should happen when you try to apply a profile that has the command
"ssh somehost" to a profile that just uses "bash -l"?

snip


> is that the mark / jump you are talking of?

snip

No, mark allows you to tell iTerm to remember a place in your
scollback buffer and jump scrolls the terminal to that position.

Cadillackid

unread,
Apr 5, 2011, 9:38:23 AM4/5/11
to iterm2-discuss
I was mainly trying to figure out how in the case i would want to have
say 4 panes open... 3 of them are in the profile 'ssh somehost'.
and i want the 4th to be 'ssh someotherhost'.
bear with me as im new to MAC OSX as well as iTerm, so I might be
missing things here too.. however im a long-timer in the Linux
world..

I have a shell script that allows me to open a window in the default
'bash' profile and then type 'servers' i get a list and can
select.. so this is how I do it when im needing to work in multiple
different hosts in the same tab.
just didnt know if there an easier way that I am missing.. and 95% of
the time im using multiple panes in the same server so applying the
profile to the tab when i start it then using the command D, shift
command D works perfectly...
-Christopher

On Apr 5, 9:15 am, "Chas. Owens" <chas.ow...@gmail.com> wrote:

Chas. Owens

unread,
Apr 5, 2011, 10:15:32 AM4/5/11
to iterm2-...@googlegroups.com, Cadillackid
On Tue, Apr 5, 2011 at 09:38, Cadillackid <eldor...@yahoo.com> wrote:
> I was mainly trying to figure out how in the case i would want to have
> say 4 panes open...  3 of them  are in the profile  'ssh somehost'.
> and i want the 4th to be 'ssh  someotherhost'.
snip

In preferences (cmd-, or iTerm > Preferences), choose the Keys
section. Click the plus sign at the bottom. Press the keyboard
shortcut you wish to assign to a given profile (for instance, cmd-s),
choose Split Horizontally with Profile or Split Vertically with
Profile, choose the profile you want associated with this shortcut,
and hit Ok. Now when you start up iTerm, you can hit the shortcut
associated with the "ssh somehost" profile three times and the "ssh
someotherhost" once and have what you want. If you always want this
arrangement, you should look at the Save Window Arrangement and
Restore Window Arrangement in the Window menu.

Reply all
Reply to author
Forward
0 new messages