sayanarijit / xplr

A hackable, minimal, fast TUI file explorer
https://xplr.dev
MIT License
4.24k stars 79 forks source link

How to start directly in search mode? #721

Closed shellwhale closed 4 months ago

shellwhale commented 4 months ago

I would like to start directly on search mode (without having to type /).

Is that possible ? I tried with the following parameters :

xplr --on-load 'SearchFuzzy'
error: invalid type: unit variant, expected newtype variant
sayanarijit commented 4 months ago

You can enter xplr --on-load 'SearchFuzzy: foo' ExplorePwd but you won't be in the search mode. To enter search mode, run:

xplr --on-load 'SwitchModeBuiltin: search' 'BufferInput: foo' SearchFuzzyFromInput ExplorePwd
sayanarijit commented 4 months ago

Actually, I missed the ExplorePwd message, which needs to be passed at the end in both cases. Updated the command.

shellwhale commented 4 months ago

Works great, thanks