Skip to content

Implement file explorer focus and add keybinds for renaming and deleting the currently selected file.#3834

Open
ryanabx wants to merge 2 commits into
lapce:masterfrom
ryanabx:file-explorer-focus
Open

Implement file explorer focus and add keybinds for renaming and deleting the currently selected file.#3834
ryanabx wants to merge 2 commits into
lapce:masterfrom
ryanabx:file-explorer-focus

Conversation

@ryanabx
Copy link
Copy Markdown
Contributor

@ryanabx ryanabx commented Nov 16, 2025

  • Added an entry to CHANGELOG.md if this change could be valuable to users

Implementing focus for the file explorer allows us to implement commands
that respond to keymaps, such as `F2` to rename, and `Delete` to trash
a file.

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
…file explorer.

This commit binds `F2` to `file_explorer.rename` which renames the currently selected node, and `Delete` to `file_explorer.trash`, which trashes the selected node.
}

fn check_condition(&self, condition: Condition) -> bool {
self.naming.with_untracked(Naming::is_accepting_input)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the only thing I'm not 100% confident about is check_condition. In file_explorer, it seemed to be a bit different from the other panels, so that's something to look at.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant