Comments (5)
With emacs 29 getting full emoji support I decoreated some of my hydra heads with emoji, which looks really nice but also breaks the alignment. E.g. with the current pretty-hydra the following hydra
(pretty-hydra-define org-clock-hydra
(:color blue :title "Org Clock ⏱️️")
("Clock"
(("i" org-clock-in "in ")
("o" org-clock-out "out ")
("l" org-clock-in-last "in last")
("s" my/org-clock-in-select "select")
("t" org-clock-hydra-into-time-sink/body "timesink")
("p" org-pomodoro "pomodoro 🍅"))
"Edit"
(("e" org-clock-modify-effort-estimate "set effort 🏋🏻♀️")
("x" org-pomodoro-extend-last-clock "extend last")
("c" org-clock-cancel "cancel clock 🚫")
("v" #'org-resolve-clocks "resolve"))
"Summary"
(("g" org-clock-goto "goto clock 🚶🏾♀️")
("d" org-clock-display "display 🖥️")
("r" org-clock-report "report 📜")
("?" (org-info "Clocking commands") "info"))))
looks like the following:
With the fix from the comment by @imakado I get the following result:
Looks like I might also need to look into the code more and check where else equality of length and width is assumed.
from major-mode-hydra.el.
Sorry for the crappy report. I'm still reading the source code...
from major-mode-hydra.el.
Thanks for reporting this. I don't personally use CJK characters in my setup but I understand it's annoying when columns don't align properly.
Do you think if you can raise a pull request for your suggested change?
from major-mode-hydra.el.
I have a feeling it highly depends on the font. I'll look into it a bit more.
from major-mode-hydra.el.
I was quite active on the issues here and initiated some PR's but also disappeared for a bit. The main reason being that I switchend to Transient for menus with automatic layouts. The recent Transient versions have the option transient-align-variable-pitch
, which implements pixel-alignment:
https://github.com/magit/transient/blob/04f87b4ab3c7448a78f452cadaaf5d9e7a216d1d/lisp/transient.el#L315-L330
Not sure is what @imakado suggested above does the same. If interested you might look into the transient code for inspiration. In transient the option is nil
by default because of the associated performance penalty.
from major-mode-hydra.el.
Related Issues (20)
- Pretty hydras not getting a big enough posframe HOT 4
- How to implement inheritance and mixing? HOT 2
- Hydras and global key bindings HOT 4
- Dynamic Title with pretty hydra HOT 2
- Calling a pretty hydra gives "wrong type argument" error HOT 3
- pretty-hydra: The caret character "^" is not displayed properly HOT 3
- major-mode-hydra: Unrecognized keyword mode-hydra in use-package HOT 3
- missing one line with posframe HOT 4
- Differences between hydra and pretty-hydra? HOT 2
- pretty-hydra: columns cannot left-justified, how to solve it? HOT 7
- macro argument HOT 3
- Composing hydras / minor mode support again HOT 4
- Checking duplicate letter HOT 3
- how to add a head but hide it from the actual menu HOT 2
- What is with-faicon? HOT 2
- Add customizable title formatter
- Hide menu? HOT 1
- ⛔ Error (use-package): use-package: Unrecognized keyword: :pretty-hydra HOT 10
- Hydra Generator Helper Function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from major-mode-hydra.el.