veeso / termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB
https://termscp.veeso.dev
MIT License
1.48k stars 45 forks source link

[Feature Request] - Filter current folder #256

Open lobneroO opened 1 month ago

lobneroO commented 1 month ago

Description

There is a search, but that is taking a lot of time in certain directories (possibly it is recursive search?) There should be a filter option for just the currently displayed files/folders

Changes

Add feature to filter current file/folder list

Implementation

Use '/' as a filter shortcut, as it is very widely used in terminal applications. Once this search is toggled, offer a pop up textfield to enter a filter term. Ideally either with wildcards or regex supported. Add a key for accepting the filter term (e.g. 'Enter'). Only display the filtered items, until the user either changes the directory or disables the filter (new key or again '/' to clear the filter term manually). Should only be applied to the currently selected side (or perhaps there is a dual filter on top, to filter on both sides). Should only be applied on the current list, no recursive behaviour.