zsh-users
 help / color / mirror / code / Atom feed
* Delete everything to the left until next whitespace?
@ 2011-02-10 20:25 Richard Hartmann
  2011-02-10 20:52 ` Peter Stephenson
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Hartmann @ 2011-02-10 20:25 UTC (permalink / raw)
  To: zsh-users

Hi all,

I am after something that _should_ be do-able, but somehow, the
solution eludes me.

I want to delete to the next whitespace on the left. If I am directly
to the right of one or more whitespaces, they should all be deleted.
With | being the cursor and ^ew being the keybinding for the function
I am after, examples would look like this:


% foo bar baz \!;\'a!a:          |^ew
% foo bar baz \!;\'a!a:|^ew
% foo bar baz |^ew
% foo bar baz|^ew
% foo bar |^ew
% foo bar|

% foo bar |^ew baz
% foo bar|^ew baz
% foo | baz

None of this should be affected by $WORDCHARS, only by whitespace.


Thanks for any and all suggestions,
Richard


PS: Other blank/non-printable characters should probably be deleted by
this, as well.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-11 19:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10 20:25 Delete everything to the left until next whitespace? Richard Hartmann
2011-02-10 20:52 ` Peter Stephenson
2011-02-10 21:43   ` René 'Necoro' Neumann
2011-02-10 22:14     ` Richard Hartmann
2011-02-10 22:26       ` René 'Necoro' Neumann
2011-02-11 19:51         ` Peter Stephenson
2011-02-10 22:14   ` Richard Hartmann

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).