Skip to content

Commit 95a78ff

Browse files
josephschmittopencode
andcommitted
Document smart layout detection for recency sorting
Added documentation explaining how the plugin automatically adjusts sort order based on fzf layout to keep recent URLs closest to the search bar in both default and reverse layouts. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <[email protected]>
1 parent a8c683e commit 95a78ff

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,20 @@ set -g @fzf-url-fzf-options '-w 50% -h 50% --multi -0 --no-preview --no-border'
5959
You can control how URLs are sorted by setting `@fzf-url-sort-by`:
6060

6161
```tmux
62-
# Sort URLs by recency (default) - preserves scrollback order, most recent first
62+
# Sort URLs by recency (default) - most recent URLs closest to search bar
6363
set -g @fzf-url-sort-by 'recency'
6464

6565
# Sort URLs alphabetically - original behavior
6666
set -g @fzf-url-sort-by 'alphabetical'
6767
```
6868

69+
**Smart Layout Detection**: When using recency sorting, the plugin automatically detects your fzf layout and adjusts the sort order to keep the most recent URLs closest to the search bar:
70+
71+
- **Default layout** (search at bottom): Recent URLs appear first (top of list)
72+
- **Reverse layout** (with `--reverse` option): Recent URLs appear last (bottom of list)
73+
74+
This ensures optimal accessibility regardless of your preferred fzf layout.
75+
6976
By default, `tmux-fzf-url` will use `xdg-open`, `open`, or the `BROWSER`
7077
environment variable to open the url, respectively. If you want to use a
7178
different command, you can set `@fzf-url-open` to the command you want to use.

0 commit comments

Comments
 (0)