zsh-users
 help / color / mirror / code / Atom feed
* [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode
@ 2016-06-21 18:51 Filipe Silva
  2016-06-21 23:10 ` Oliver Kiddle
  0 siblings, 1 reply; 15+ messages in thread
From: Filipe Silva @ 2016-06-21 18:51 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

Hi good people,

I reckon there's already a widget for the `g~` action in zle.

I'm using zsh 5.0.8.

I read the zshzle manual and did not find a widget that would give me the
behaviour of `gU` (capitalize action)

for example: for the word "path_variable", with the cursor on the `v`, gUiW
would change the world to "PATH_VARIABLE", and so on and so forth.

the widget `capitalize-word` does not seem to work like that.

I also found that the key `U` in visual mode does not capitalize the
visually selected text/region. I did not find a widget in the manual that
would give me the desired behaviour either.

Is this a matter of writing a custom widget, or would one have to submit a
patch upstream with c code changes? I'm asking this because 5.0.8
introduced text objects and that was done via c code changes and not via
widgets. And writing custom widgets seems to be less difficult.

Thanks in advance.

Filipe.

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

end of thread, other threads:[~2016-06-25 20:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 18:51 [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode Filipe Silva
2016-06-21 23:10 ` Oliver Kiddle
2016-06-22  6:42   ` Bart Schaefer
2016-06-22 13:19     ` Filipe Silva
2016-06-22 13:23       ` Filipe Silva
2016-06-22 15:09         ` Oliver Kiddle
2016-06-22 15:25           ` Filipe Silva
2016-06-22 15:28             ` Filipe Silva
2016-06-22 22:29               ` Oliver Kiddle
2016-06-23  4:30                 ` Filipe Silva
2016-06-23  5:28                   ` Bart Schaefer
2016-06-23 22:37                   ` Bart Schaefer
2016-06-22 19:10           ` Filipe Silva
2016-06-22 20:11             ` Oliver Kiddle
2016-06-22 20:19             ` Bart Schaefer

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