* Display the key bindings on the screen
@ 2013-06-22 19:15 marc tfardy
2013-06-23 2:06 ` rustompmody
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: marc tfardy @ 2013-06-22 19:15 UTC (permalink / raw)
To: help-gnu-emacs
I plan a Emacs video tutorial. For better key chords visualisation I
would like to display the pressed keys on the screen (in a window or in
a small separate frame). This means: when I type some key combination
that is bound to a Emacs lisp function - or this keys are a prefix -
these keys are displayed on the screen and are further normally
processed. Think of something like key visualisation in this video:
https://tutsplus.com/lesson/the-command-palette/
but not as a separate software, but a part of Emacs. This could could be
an advantage for extension, e.g. displaying of the command name.
Is there any package that cover this functionality?
--
(or greets gruesse pozdro)
tfardy
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-22 19:15 Display the key bindings on the screen marc tfardy
@ 2013-06-23 2:06 ` rustompmody
2013-06-24 16:28 ` Rustom Mody
2013-06-23 3:09 ` Michael Heerdegen
` (2 subsequent siblings)
3 siblings, 1 reply; 14+ messages in thread
From: rustompmody @ 2013-06-23 2:06 UTC (permalink / raw)
To: help-gnu-emacs
On Sunday, June 23, 2013 12:45:11 AM UTC+5:30, marc tfardy wrote:
> I plan a Emacs video tutorial. For better key chords visualisation I
> would like to display the pressed keys on the screen (in a window or in
> a small separate frame). This means: when I type some key combination
> that is bound to a Emacs lisp function - or this keys are a prefix -
> these keys are displayed on the screen and are further normally
> processed. Think of something like key visualisation in this video:
> https://tutsplus.com/lesson/the-command-palette/
> but not as a separate software, but a part of Emacs. This could could be
> an advantage for extension, e.g. displaying of the command name.
>
> Is there any package that cover this functionality?
http://www.emacswiki.org/emacs/CommandLogMode
Ive been trying to tweak it to make it usable... not very successful
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-22 19:15 Display the key bindings on the screen marc tfardy
2013-06-23 2:06 ` rustompmody
@ 2013-06-23 3:09 ` Michael Heerdegen
2013-06-24 14:55 ` Tim Visher
[not found] ` <mailman.2233.1371957909.22516.help-gnu-emacs@gnu.org>
3 siblings, 0 replies; 14+ messages in thread
From: Michael Heerdegen @ 2013-06-23 3:09 UTC (permalink / raw)
To: help-gnu-emacs
marc tfardy <tfardy@tfardoland.net> writes:
> I plan a Emacs video tutorial. For better key chords visualisation I
> would like to display the pressed keys on the screen (in a window or
> in a small separate frame). This means: when I type some key
> combination that is bound to a Emacs lisp function - or this keys are
> a prefix -
> these keys are displayed on the screen and are further normally
> processed. Think of something like key visualisation in this video:
> https://tutsplus.com/lesson/the-command-palette/
> but not as a separate software, but a part of Emacs. This could could
> be an advantage for extension, e.g. displaying of the command name.
>
> Is there any package that cover this functionality?
You may want to try
http://www.emacswiki.org/emacs/InteractionLogMode
as a start.
Regards,
Michael.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-22 19:15 Display the key bindings on the screen marc tfardy
2013-06-23 2:06 ` rustompmody
2013-06-23 3:09 ` Michael Heerdegen
@ 2013-06-24 14:55 ` Tim Visher
[not found] ` <mailman.2233.1371957909.22516.help-gnu-emacs@gnu.org>
3 siblings, 0 replies; 14+ messages in thread
From: Tim Visher @ 2013-06-24 14:55 UTC (permalink / raw)
To: marc tfardy; +Cc: emacs
On Sat, Jun 22, 2013 at 3:15 PM, marc tfardy <tfardy@tfardoland.net> wrote:
> I plan a Emacs video tutorial. For better key chords visualisation I would
> like to display the pressed keys on the screen (in a window or in a small
> separate frame). This means: when I type some key combination that is bound
> to a Emacs lisp function - or this keys are a prefix - these keys are
> displayed on the screen and are further normally processed. Think of
> something like key visualisation in this video:
> https://tutsplus.com/lesson/the-command-palette/
> but not as a separate software, but a part of Emacs. This could could be an
> advantage for extension, e.g. displaying of the command name.
>
> Is there any package that cover this functionality?
[vimgolf-minor-mode][] does most of this, but not in a way that you'd
directly like. I've been meaning to rip out the key-recording part of
it into something separate as I've wanted it enough times in other
places that I think it would be useful as a composable library. You
might be interested in doing that.
Other than that, I don't know what your platform is, but I used
[KeyCastr][] to great effect in my own [VimGolf in Emacs Series][]. I
think there are things like that for every major platform. Might
consider using that even though it won't do everything you want it to
do. Better to ship something than nothing.
[vimgolf-minor-mode]: https://github.com/igrigorik/vimgolf/tree/master/emacs
[KeyCastr]: http://download.cnet.com/KeyCastr/3000-2075_4-125977.html
[VimGolf in Emacs Series]: http://blog.twonegatives.com/tagged/vimgolf/
--
In Christ,
Timmy V.
http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-23 2:06 ` rustompmody
@ 2013-06-24 16:28 ` Rustom Mody
0 siblings, 0 replies; 14+ messages in thread
From: Rustom Mody @ 2013-06-24 16:28 UTC (permalink / raw)
To: help-gnu-emacs
On Sunday, June 23, 2013 7:36:07 AM UTC+5:30, Rustom Mody wrote:
> On Sunday, June 23, 2013 12:45:11 AM UTC+5:30, marc tfardy wrote:
> > I plan a Emacs video tutorial. For better key chords visualisation I
> > would like to display the pressed keys on the screen (in a window or in
> > a small separate frame). This means: when I type some key combination
> > that is bound to a Emacs lisp function - or this keys are a prefix -
> > these keys are displayed on the screen and are further normally
> > processed. Think of something like key visualisation in this video:
> > https://tutsplus.com/lesson/the-command-palette/
> > but not as a separate software, but a part of Emacs. This could could be
> > an advantage for extension, e.g. displaying of the command name.
> >
> > Is there any package that cover this functionality?
>
>
>
> http://www.emacswiki.org/emacs/CommandLogMode
>
> Ive been trying to tweak it to make it usable... not very successful
Well I did tweak it a bit and its a little better.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(load "command-log-mode")
(defun rusi/open-command-log-buffer ()
(interactive)
(let ((pop-up-frames t))
(clm/open-command-log-buffer))
)
(add-hook 'haskell-mode-hook 'command-log-mode)
(add-hook 'inferior-haskell-hook 'command-log-mode)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Since I currently want it to work in teaching haskell, I need it to kick in for haskell-mode and inferior-haskell-mode -- that explains the two hook setups.
The rusi/open-command-log-buffer is just clm/open-command-log-buffer advised to open in a separate frame.
I further wanted to make the frame look better eg no header, minibuffer etc.
However my attempts at hacking the frame commands are unsuccessful at a completely noob level and my question http://lists.gnu.org/archive/html/help-gnu-emacs/2013-06/msg00465.html is unanswered so far :-((
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
[not found] ` <mailman.2233.1371957909.22516.help-gnu-emacs@gnu.org>
@ 2013-06-24 16:30 ` Rustom Mody
2013-06-24 18:05 ` Michael Heerdegen
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Rustom Mody @ 2013-06-24 16:30 UTC (permalink / raw)
To: help-gnu-emacs
On Sunday, June 23, 2013 8:39:39 AM UTC+5:30, Michael Heerdegen wrote:
> marc tfardy < > writes:
> > I plan a Emacs video tutorial. For better key chords visualisation I
> > would like to display the pressed keys on the screen (in a window or
> > in a small separate frame).
> > Is there any package that cover this functionality?
>
> You may want to try
>
>
> http://www.emacswiki.org/emacs/InteractionLogMode
I tried this and could only get a blank buffer, whatever I tried.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-24 16:30 ` Rustom Mody
@ 2013-06-24 18:05 ` Michael Heerdegen
2013-06-24 19:09 ` marc tfardy
[not found] ` <mailman.2321.1372097153.22516.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 14+ messages in thread
From: Michael Heerdegen @ 2013-06-24 18:05 UTC (permalink / raw)
To: help-gnu-emacs
Rustom Mody <rustompmody@gmail.com> writes:
> > http://www.emacswiki.org/emacs/InteractionLogMode
>
> I tried this and could only get a blank buffer, whatever I tried.
Sorry about that.
Which Emacs version are you using (note that I didn't spend the time to
make it compatible with versions prior 24)?
If you are using Emacs 24, could you please send me a recipe starting
with emacs -Q?
Thanks,
Michael.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-24 16:30 ` Rustom Mody
2013-06-24 18:05 ` Michael Heerdegen
@ 2013-06-24 19:09 ` marc tfardy
2013-06-24 21:22 ` Sebastien Vauban
[not found] ` <mailman.2321.1372097153.22516.help-gnu-emacs@gnu.org>
2 siblings, 1 reply; 14+ messages in thread
From: marc tfardy @ 2013-06-24 19:09 UTC (permalink / raw)
To: help-gnu-emacs
Am 24.06.13 18:30, schrieb Rustom Mody:
First, thanks at this place for all responses and your help!
> On Sunday, June 23, 2013 8:39:39 AM UTC+5:30, Michael Heerdegen wrote:
>> marc tfardy < > writes:
>>> I plan a Emacs video tutorial. For better key chords visualisation I
>>> would like to display the pressed keys on the screen (in a window or
>>> in a small separate frame).
>>> Is there any package that cover this functionality?
>>
>> You may want to try
>>
>>
>> http://www.emacswiki.org/emacs/InteractionLogMode
>
> I tried this and could only get a blank buffer, whatever I tried.
Unfortunately, the same here - I didn't get it running. Always empty
"*Emacs Log*" buffer. But CommandLog has worked. However, there is still
potential for improvement. E.g. copy-to-register prints only C-x r s -
the register letter is missing. I think fixing this problem could be
very difficult.
--
(or greets gruesse pozdro)
tfardy
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-24 19:09 ` marc tfardy
@ 2013-06-24 21:22 ` Sebastien Vauban
2013-06-26 1:13 ` Michael Heerdegen
0 siblings, 1 reply; 14+ messages in thread
From: Sebastien Vauban @ 2013-06-24 21:22 UTC (permalink / raw)
To: help-gnu-emacs-mXXj517/zsQ
Hello,
marc tfardy wrote:
> Am 24.06.13 18:30, schrieb Rustom Mody:
>> On Sunday, June 23, 2013 8:39:39 AM UTC+5:30, Michael Heerdegen wrote:
>>> marc tfardy < > writes:
>>>> I plan a Emacs video tutorial. For better key chords visualisation I
>>>> would like to display the pressed keys on the screen (in a window or
>>>> in a small separate frame).
>>>> Is there any package that cover this functionality?
>>>
>>> You may want to try
>>>
>>> http://www.emacswiki.org/emacs/InteractionLogMode
>>
>> I tried this and could only get a blank buffer, whatever I tried.
>
> Unfortunately, the same here - I didn't get it running. Always empty "*Emacs
> Log*" buffer. But CommandLog has worked. However, there is still potential for
> improvement. E.g. copy-to-register prints only C-x r s -
> the register letter is missing. I think fixing this problem could be very
> difficult.
I just used it with success, under Emacs 24.3.50.1.
Very, very, very nice, even if I'd suggest 3 small (?) improvements:
- having the same keys not repeated in sequence over separate lines (try to
write, for example, "Down 47 times").
- respect `ilog-log-max' as soon as the limit is exceeded (for example, after
10 keystrokes), instead after some apparent idle time.
- remove the name of the buffer where things occur -- it makes it (much, with
long buffer names) harder to read, while looking at the screencast (if used
for that) gives all the needed information about where keys are pressed.
- don't write `self-insert-command': useless to read, for such cases, that the
key pressed had no special effect other than inserting itself. I would
possibly allow the user to be able to customize whether he wants to see the
command for the other cases, but that's really helpful, in many cases (a
great functionality).
Thanks a lot, Michael! A great package!
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
[not found] ` <mailman.2321.1372097153.22516.help-gnu-emacs@gnu.org>
@ 2013-06-25 1:51 ` Rustom Mody
2013-06-25 7:41 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Rustom Mody @ 2013-06-25 1:51 UTC (permalink / raw)
To: help-gnu-emacs
On Monday, June 24, 2013 11:35:36 PM UTC+5:30, Michael Heerdegen wrote:
> Rustom Mody <> writes:
>
>
> > http://www.emacswiki.org/emacs/InteractionLogMode
>
> > I tried this and could only get a blank buffer, whatever I tried.
>
> Sorry about that.
> Which Emacs version are you using (note that I didn't spend the time to
> make it compatible with versions prior 24)?
>
> If you are using Emacs 24, could you please send me a recipe starting
> with emacs -Q?
>
The only 24 I have is 24.0.50 (after that Ive not compiled) so I guess its a rather odd buggy version?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-25 1:51 ` Rustom Mody
@ 2013-06-25 7:41 ` Peter Dyballa
2013-06-25 21:20 ` Michael Heerdegen
[not found] ` <mailman.2425.1372195268.22516.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2013-06-25 7:41 UTC (permalink / raw)
To: Rustom Mody; +Cc: Emacs help
Am 25.06.2013 um 03:51 schrieb Rustom Mody:
> The only 24 I have is 24.0.50 (after that Ive not compiled) so I guess its a rather odd buggy version?
Indeed!
--
Greetings
Pete
I wouldn't recommend sex, drugs or insanity for everyone, but they've always worked for me.
– Hunter S. Thompson
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-25 1:51 ` Rustom Mody
2013-06-25 7:41 ` Peter Dyballa
@ 2013-06-25 21:20 ` Michael Heerdegen
[not found] ` <mailman.2425.1372195268.22516.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 14+ messages in thread
From: Michael Heerdegen @ 2013-06-25 21:20 UTC (permalink / raw)
To: help-gnu-emacs
Rustom Mody <rustompmody@gmail.com> writes:
> The only 24 I have is 24.0.50 (after that Ive not compiled) so I guess
> its a rather odd buggy version?
You can eval
(defun ilog-entering-password-p () nil)
after loading the file, but before turning on the mode. That makes it
work, but disables the feature of hiding entered passwords.
Didn't think that so many people are still using such old Emacsen...
Regards,
Michael.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
2013-06-24 21:22 ` Sebastien Vauban
@ 2013-06-26 1:13 ` Michael Heerdegen
0 siblings, 0 replies; 14+ messages in thread
From: Michael Heerdegen @ 2013-06-26 1:13 UTC (permalink / raw)
To: help-gnu-emacs
"Sebastien Vauban" <sva-news@mygooglest.com>
writes:
> I just used it with success, under Emacs 24.3.50.1.
Thanks for testing!
> [...] I'd suggest 3 small (?) improvements:
> - having the same keys not repeated in sequence over separate lines (try to
> write, for example, "Down 47 times").
I totally agree. Although the fact that I want to merge in messages
complicates the matter a bit.
> - respect `ilog-log-max' as soon as the limit is exceeded (for
> example, after
> 10 keystrokes), instead after some apparent idle time.
What is the advantage you have in mind?
> - remove the name of the buffer where things occur -- it makes it
> (much, with
> long buffer names) harder to read, while looking at the screencast
> (if used
> for that) gives all the needed information about where keys are pressed.
>
> - don't write `self-insert-command': useless to read, for such cases,
> that the
> key pressed had no special effect other than inserting itself. I would
> possibly allow the user to be able to customize whether he wants to
> see the
> command for the other cases, but that's really helpful, in many cases (a
> great functionality).
No doubt, that would improve readability. Note that when I wrote it, I
had a totally different use case in mind: to let you reconstruct what
happened the last seconds. I didn't think of presentation.
Anyway, feel free to contact me when you want to answer:
(concat "michael" [95] "heerdegen" [64] "web.de")
Regards,
Michael.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Display the key bindings on the screen
[not found] ` <mailman.2425.1372195268.22516.help-gnu-emacs@gnu.org>
@ 2013-06-26 3:56 ` Rustom Mody
0 siblings, 0 replies; 14+ messages in thread
From: Rustom Mody @ 2013-06-26 3:56 UTC (permalink / raw)
To: help-gnu-emacs
On Wednesday, June 26, 2013 2:50:47 AM UTC+5:30, Michael Heerdegen wrote:
> Rustom Mody writes:
>
> > The only 24 I have is 24.0.50 (after that Ive not compiled) so I guess
> > its a rather odd buggy version?
>
>
>
> You can eval
> (defun ilog-entering-password-p () nil)
> after loading the file, but before turning on the mode. That makes it
> work, but disables the feature of hiding entered passwords.
Ok it seems to work now. Thanks
Is there some way of specifying a set of 'obvious' keys/commands to not show.
eg self-insert, cursor-movement etc?
>
> Didn't think that so many people are still using such old Emacsen...
Well 23.4 is what comes default with most linuxes I know
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-06-26 3:56 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-22 19:15 Display the key bindings on the screen marc tfardy
2013-06-23 2:06 ` rustompmody
2013-06-24 16:28 ` Rustom Mody
2013-06-23 3:09 ` Michael Heerdegen
2013-06-24 14:55 ` Tim Visher
[not found] ` <mailman.2233.1371957909.22516.help-gnu-emacs@gnu.org>
2013-06-24 16:30 ` Rustom Mody
2013-06-24 18:05 ` Michael Heerdegen
2013-06-24 19:09 ` marc tfardy
2013-06-24 21:22 ` Sebastien Vauban
2013-06-26 1:13 ` Michael Heerdegen
[not found] ` <mailman.2321.1372097153.22516.help-gnu-emacs@gnu.org>
2013-06-25 1:51 ` Rustom Mody
2013-06-25 7:41 ` Peter Dyballa
2013-06-25 21:20 ` Michael Heerdegen
[not found] ` <mailman.2425.1372195268.22516.help-gnu-emacs@gnu.org>
2013-06-26 3:56 ` Rustom Mody
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 read-only IMAP folder(s) and NNTP newsgroup(s).