zsh-users
 help / color / mirror / code / Atom feed
* Adding to the history from within a widget
@ 2020-01-02 17:14 Piers Powlesland
  2020-01-03  3:37 ` dana
  0 siblings, 1 reply; 8+ messages in thread
From: Piers Powlesland @ 2020-01-02 17:14 UTC (permalink / raw)
  To: zsh-users

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

Hi,

I tried to use "print -s xxxxx" to add entries to the history from within a
widget but it doesn't seem to work, although executing the function not as
a widget does allow me to add entries to the history.

Is there any way to add an entry to the history from within a widget.

For now I have resorted to setting hist_ignore_space and then binding the
function using "bindkey -s" and providing a preceding space, but this feels
a bit hacky.

Thanks,

Piers

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

end of thread, other threads:[~2020-01-06 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-02 17:14 Adding to the history from within a widget Piers Powlesland
2020-01-03  3:37 ` dana
2020-01-03 11:03   ` Piers Powlesland
2020-01-03 23:11     ` dana
2020-01-03 23:46       ` Bart Schaefer
2020-01-04  0:17         ` Piers Powlesland
2020-01-04  1:41           ` Bart Schaefer
2020-01-06 13:40             ` Piers Powlesland

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