A Yazi plugin that displays recently modified files (within the last 5 days).
- Install the plugin by running:
git clone https://github.com/your-username/modif.yazi.git ~/.config/yazi/plugins/modif.yazi
or
ya pkg add Shallow-Seek/modif
- Add the plugin to your Yazi keymaps (
keymap.toml):
[[manager.prepend_keymap]]
on = [ "b", "m" ]
run = "plugin modif 5d"
desc = "Show files modified in the last 5 days"You can configure the time range for recently modified files by passing an argument to the plugin command in your keymap.toml. This allows you to have multiple keybindings for different time ranges.
For example:
[[manager.prepend_keymap]]
on = [ "b", "w" ]
run = "plugin modif 1w"
desc = "Show files modified in the last week"The default time range is 5d if no argument is provided.
The arg will be passed as fd's --changed-within option. It can be specified using units like d (days), week, month, year.
- In Yazi, press
bfollowed bym(or your configured keybinding) - files modified within the last 5 days will be shown in the search pane.
- Navigate, operate, and preview the files as you would in any regular directory. And quit the view by press
esc.
This project is licensed under the MIT License. See the LICENSE file for details.