revert(menu): keep the hand-rolled fd files module, drop rofi-file-browser
The rofi-file-browser-extended navigate-a-tree model felt worse than flat fuzzy-find for a quick launcher (yazi already covers real browsing), so `files` goes back to `fd` → `rofi -dmenu` → xdg-open. calc (rofi-calc) and emoji (rofi-emoji) stay. Re-adds `fd` to the module's packages and notes the dropped plugin in the roadmap. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
{ mods = "$mod CTRL"; key = "V"; action = "exec, nomarchy-menu clipboard"; desc = "Clipboard history"; }
|
||||
{ mods = "$mod CTRL"; key = "C"; action = "exec, nomarchy-menu calc"; desc = "Calculator"; }
|
||||
{ mods = "$mod CTRL"; key = "W"; action = "exec, nomarchy-menu web"; desc = "Web search"; }
|
||||
{ mods = "$mod CTRL"; key = "F"; action = "exec, nomarchy-menu files"; desc = "File browser"; }
|
||||
{ mods = "$mod CTRL"; key = "F"; action = "exec, nomarchy-menu files"; desc = "File search"; }
|
||||
{ mods = "$mod CTRL"; key = "E"; action = "exec, nomarchy-menu emoji"; desc = "Emoji picker"; }
|
||||
{ mods = "$mod CTRL"; key = "N"; action = "exec, nomarchy-menu network"; desc = "Network (nmtui)"; }
|
||||
{ mods = "$mod CTRL"; key = "B"; action = "exec, nomarchy-menu bluetooth"; desc = "Bluetooth"; }
|
||||
|
||||
@@ -108,13 +108,11 @@ let
|
||||
-calc-command "echo -n '{result}' | wl-copy" ;;
|
||||
|
||||
files)
|
||||
# Live file browser (rofi-file-browser-extended): navigate into
|
||||
# directories, go up with Backspace, toggle hidden files with the
|
||||
# rofi custom key, and open the selection with xdg-open. Starts in
|
||||
# $HOME. The keyboard-heavy TUI flagship for real work is yazi
|
||||
# (SUPER+E); this is the quick launcher path.
|
||||
exec rofi -show file-browser-extended -modi file-browser-extended \
|
||||
-file-browser-dir "$HOME" -file-browser-cmd xdg-open ;;
|
||||
sel=$(fd . "$HOME" --type f --hidden --exclude .git --exclude .cache 2>/dev/null \
|
||||
| head -n 50000 \
|
||||
| sed "s|^$HOME/||" \
|
||||
| rofi -dmenu -p file) || exit 0
|
||||
[ -n "$sel" ] && exec xdg-open "$HOME/$sel" ;;
|
||||
|
||||
emoji)
|
||||
# Emoji / symbol picker (rofi-emoji). The default action copies the
|
||||
@@ -217,7 +215,8 @@ in
|
||||
config = lib.mkIf cfg.rofi.enable {
|
||||
home.packages = [
|
||||
nomarchy-menu
|
||||
pkgs.xdg-utils # xdg-open for the web + file-browser modules
|
||||
pkgs.fd # files module (fuzzy search over $HOME)
|
||||
pkgs.xdg-utils # xdg-open for the files + web modules
|
||||
pkgs.nodejs # npx, for the Ask Claude module (claude-code from npm)
|
||||
];
|
||||
|
||||
@@ -226,11 +225,11 @@ in
|
||||
terminal = cfg.terminal;
|
||||
font = "${t.fonts.ui} 12";
|
||||
|
||||
# Native rofi modi backing three menu modules: calc (live, via
|
||||
# libqalculate — no qalc CLI needed), emoji (glyph picker, copies via
|
||||
# its bundled Wayland adapter), file-browser (live navigation). All
|
||||
# render through the generated/whole-swap theme like every other modi.
|
||||
plugins = [ pkgs.rofi-calc pkgs.rofi-emoji pkgs.rofi-file-browser ];
|
||||
# Native rofi modi backing two menu modules: calc (live, via
|
||||
# libqalculate — no qalc CLI needed) and emoji (glyph picker, copies
|
||||
# via its bundled Wayland adapter). Both render through the
|
||||
# generated/whole-swap theme like every other modi.
|
||||
plugins = [ pkgs.rofi-calc pkgs.rofi-emoji ];
|
||||
|
||||
extraConfig = {
|
||||
modi = "drun,run";
|
||||
|
||||
Reference in New Issue
Block a user