kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.34k stars 151 forks source link

Feature request: Add options to pre-select a file on start #539

Open theniceboy opened 1 month ago

theniceboy commented 1 month ago

When using Joshuto as a plugin for a text editor program (like vim), it's helpful to have Joshuto automatically highlight the file that the user is editing when the user opens Joshuto from the editor. Therefore, a --preselect-path option would be ideal from this problem.

DLFW commented 1 month ago

You mean select like with the select command (usually mapped to <space>) or to have the cursor on that file?

theniceboy commented 1 month ago

@DLFW no not highlighting a file, I meant putting the cursor on that file.

JohanChane commented 1 week ago

I think the design of yazi is good. There's no need to add the option. If it's a regular file, the cursor on the file, and if it's a directory, it behaves as usual.