Skip to content

feat: Add source/action to select and execute vim-fern's actions#3

Merged
lambdalisue merged 1 commit intovim-fall:mainfrom
mityu:add-fern-action
Jan 14, 2026
Merged

feat: Add source/action to select and execute vim-fern's actions#3
lambdalisue merged 1 commit intovim-fall:mainfrom
mityu:add-fern-action

Conversation

@mityu
Copy link
Contributor

@mityu mityu commented Jan 14, 2026

This is vim-fern version of #1 .

This PR adds a source to get a list of fern actions from the current fern buffer, and an action to execute a selected action on the current fern buffer.

Example

This is an example screenshot of fern-action picker works at the root directory of this repository.
image

The configuration is like this.

import { fernAction } from "@vim-fall/extra/source/fern-action";
import { defaultFernActionExecuteActions } from "@vim-fall/extra/action/fern-action-execute";

definePickerFromSource("fern-action", fernAction, {
  previewers: [],
  actions: {
    ...defaultFernActionExecuteActions,
  },
  defaultAction: "fern-action-execute",
});

Note that as same as gin-action, the fern-action-execute action ignores the selectedItems property and only respect the item property.
Ref: #1 (comment)

@lambdalisue lambdalisue merged commit bbb70c1 into vim-fall:main Jan 14, 2026
5 checks passed
@mityu mityu deleted the add-fern-action branch January 14, 2026 10:29
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.

2 participants