Coder Social home page Coder Social logo

tb-keycast's People

Contributors

ir33k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yantar92

tb-keycast's Issues

Allow customizing the indicator position

Your version of keycast looks nice at the tab-line, except that I do not really want to use the rest of the tab-line.

So, I have customized the tab-line format as the following:

(setq-default tab-bar-format nil)
  (set-face-attribute 'tab-bar nil
                      :inherit 'default
                      :underline (color-lighten-name (face-foreground 'default) 80))

However, it now feels natural to move the keycast indicator to the left. It would be useful to add such customization.

[FR] Display command log window

Seeing the last command is indeed nice, but easy to miss at times. It would be useful to add an option to display recent commands in a side window slot in Emacs.

Wrong width calculations when font differs in buffer and tab-bar

I discover that all calculations of position and width used to align status string to the right and avoid wrapping are incorrect when tab-bar have different font than buffer.

Its because to calculate width of string in pixels string-pixel-width function is used. It works by inserting string to temporary buffer and takes measurements there. If your buffer font is for example monospace but tab-bar font use proportional font it will return wrong value.

I believe that to fix this all we need is to apply font used in tab-bar to string before string-pixel-width function is used.

Keycast is sometimes stopped because error is thrown in pre-command-hook

When I run a lambda function from inside helm, I can reliably "freeze" the keycast indicator. It happens because tb-keycast--update throws and error and Emacs automatically removes it from command hooks.

The error is the following

(wrong-type-argument symbolp (lambda nil (interactive) (helm-select-nth-action 1)))

Ugly line wrapping when the font :height is larger than default font

I just tried to increase the tab-bar font height:

(set-face-attribute 'tab-bar nil
                      :inherit 'default
                      :underline (color-lighten-name (face-foreground 'default) 80)
                      :height 2.0)

The result is ugly tab-bar wrapping to second line.

The problem appears to be not in tb-keycast itself, but rather in tab-bar-format-align-right. I guess it should be reported to Emacs upstream.

Displaying commands called with prefix argument

It is not currently possible to distinguish between commands called with and without prefix arguments (numeric or C-u). Yet, this information is important to understand what is happening - command behaviour might be significantly changed depending on the prefix argument.

It would be nice to display the non-nil prefix argument in addition to the nominal key sequence.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.