zsh-users
 help / color / mirror / code / Atom feed
From: Dan Nelson <dnelson@allantgroup.com>
To: Skye Poier <skye@isilon.com>
Cc: zsh-users@sunsite.dk
Subject: Re: moving to end of line
Date: Fri, 25 Jul 2003 16:43:12 -0500	[thread overview]
Message-ID: <20030725214312.GG20823@dan.emsphone.com> (raw)
In-Reply-To: <20030725211024.GG23355@isilon.com>

In the last episode (Jul 25), Skye Poier said:
> Hi everyone, I'm a recent tcsh convert, and loving it :) Got
> everything just the way I like it, except one minor niggling detail.
> 
> When I scroll up and down through history with:
> 
> bindkey "^[[A"  history-beginning-search-backward
> bindkey "^[[B"  history-beginning-search-forward
> 
> It would be really nice to have the cursor moved to the END of the
> line, because 99% of the time I just need to change a bit of text on
> the end of the command.  Is there a way to do that?

I'll leave this question to a widget wizard.
 
> I've "setopt ALWAYS_TO_END" but that's only for completion apparently.
> 
> (by the way, it would be really nice to be able to specify termcap
> entries with bindkey)

I use this:

# Usage: bindtc <cap> <default> <zsh-command>
# If <cap> is unavailable, use <default>
bindtc () 
{
	local keyval=$(echotc "$1" 2>&-)
	[[ $keyval == "no" ]] && keyval=""
	bindkey "${keyval:-$2}" "$3"
}


-- 
	Dan Nelson
	dnelson@allantgroup.com


  reply	other threads:[~2003-07-25 21:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-25 21:10 Skye Poier
2003-07-25 21:43 ` Dan Nelson [this message]
2003-07-25 22:08   ` bindkey/termcap Skye Poier
2003-07-26 21:18 ` moving to end of line Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030725214312.GG20823@dan.emsphone.com \
    --to=dnelson@allantgroup.com \
    --cc=skye@isilon.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).