keyboard shortcut for jumping to beginning of buffer

13 views
Skip to first unread message

Zsolt Ero

unread,
Jun 26, 2025, 12:39:54 AMJun 26
to iterm2-discuss
Hi,

I'm having trouble finding a keyboard shortcut which jumps to the beginning of the buffer.

I've tried:
Shift + Fn + Up Arrow -> prints 2~
Cmd + Up Arrow -> same as up arrow, shows last command
Cmd + Fn + Left Arrow  -> nothing happens

Can you help me debug this? Why is this happening and what should be the right keyboard shortcut for this to work?

I'm using this in .inputrc, do you think it might be related?

"\e[1~":    beginning-of-line
"\e[4~":    end-of-line
"\e[5~":    history-search-backward
"\e[6~":    history-search-forward
"\e[A":     history-search-backward
"\e[B":     history-search-forward
"\e[3~":    delete-char
"\e[2~":    quoted-insert
"\e[5C":    forward-word
"\e[5D":    backward-word
"\e\e[C":   forward-word
"\e\e[D":   backward-word
"\e[Z":     menu-complete

set match-hidden-files on
set show-all-if-ambiguous on
set completion-ignore-case on

Zsolt

George Nachman

unread,
Jul 3, 2025, 12:41:34 AMJul 3
to iterm2-...@googlegroups.com
I guess it depends what program you’re in. Inputrc is generally used by readline. I looked at the docs and I don’t see anything better than beginning-of-line. But multi-line buffers are rare in deadline-using programs, so maybe this is a red herring.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/e782eaf6-c75f-44c4-8741-c7307c324361n%40googlegroups.com.

Zsolt Ero

unread,
Jul 5, 2025, 2:48:19 PMJul 5
to iterm2-...@googlegroups.com
What I meant was the iTerm scrolling buffer, and it turned out inputrc has nothing to do with it.

The solution was keys / key bindings / restore defaults.

Zsolt



You received this message because you are subscribed to a topic in the Google Groups "iterm2-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/iterm2-discuss/RU55iamjlbU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/CAB5RqokAFMbO_xSSUJgT-P4qC1zHRM1oJDnjtUvMqD7UXEN0fA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages