Comments (3)
The algorithm works in the following way:
- priority 1: minimize the max tree height.
- priority 2: maximize the amount of leafs at lower height.
In your case, the max tree height is 2. And the amount of leafs on the lower height is 1 (a
). If (s
) were also on height 1, then there would be to space to fit the rest of the candidates => the resulting max tree height would be 3. So the algorithm works correctly here (unless it just cuts off at fa
like in screenshot).
You can play around with avy-subdiv
to see how it works:
(avy-subdiv 100 6)
;; =>
;; (6 6 6 10 36 36)
In this case, there are 100 candidates, and 6 decision keys. The first three branches contain 6 candidates, which means their leafs are on level 2. The next three branches have their leafs on level 3, with the fourth branch left with some free space.
from avy.
I see. Not sure many people would understand the behaviour, but it makes sense. Maybe you should document it with more examples in the README?
from avy.
Added a wiki page for this.
from avy.
Related Issues (20)
- Reverse the order of key-labels for avy-goto-*-above HOT 2
- Avy's upstream and its version in elpa.git diverged
- Dimming buttons and headers HOT 1
- First char not highlighted
- Is there a workaround for shifted characters in variable-pitch-mode? HOT 1
- avy-copy/move-line/region expects a keystroke on emacs 28 HOT 2
- add-text-properties can be called on empty string
- Contribution Guidance Request: avy-goto-char-timer populate lead key face automatically
- How do I "activate" the avy-org-* commands?
- avy-dispatch-alist to invoke "isearch-forward-symbol-at-point" on C-s HOT 2
- What does de-bruijn style do? HOT 1
- avy-goto-char-2 display overlays after first character like Neovim's leap
- Go to word(-0) in line? HOT 1
- avy-org-refile-as-child error
- avy-org-refile-as-child error
- [FR] Select two arbitrary characters and copy the content between them HOT 1
- Temporarily disable prettify-symbols-mode
- avy-linum-mode clashes with visual-line-mode
- The mouse position after executing the avy-copy-region command?
- Some useful functions (with suggested optimizations) HOT 1
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 avy.