Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lambdalisue/vim-fern-bookmark

🌿 fern.vim plugin which add bookmark scheme
https://github.com/lambdalisue/vim-fern-bookmark

fern-vim-plugin

Last synced: 21 days ago
JSON representation

🌿 fern.vim plugin which add bookmark scheme

Awesome Lists containing this project

README

        

# 🌿 fern-bookmark.vim

[![fern plugin](https://img.shields.io/badge/🌿%20fern-plugin-yellowgreen)](https://github.com/lambdalisue/fern.vim)

A plugin for [fern.vim](https://github.com/lambdalisue/fern.vim) which provides simple bookmark feature.

## Usage

First of all, open fern for any scheme and hit `B` to save selected nodes to bookmarks.
Then, execute the following command to open a bookmark tree.

```
:Fern bookmark:///
```

In bookmark tree, you can manually create a new bookmark with `N` or edit with `e`.
Or, hit `` to open the bookmark, `x` to open the bookmark with a system
program, or execute `cd/lcd/tcd` action to change current directory.

## Mapping/Action

Addition to the builtin mappings/actions, the followings are available for bookmark scheme.

| Mapping | Action | Description |
| ------- | ------------- | --------------------------------------- |
| `N` | `new-leaf` | Add new bookmark |
| `K` | `new-branch` | Add new bookmark folder |
| `D` | `remove` | Remove bookmark or folder |
| `x` | `open:system` | Open the bookmark with a system program |
| | `cd` | Change directory with `cd` command |
| | `lcd` | Change directory with `lcd` command |
| | `tcd` | Change directory with `tcd` command |

And the followings are available for _ANY_ scheme.

| Mapping | Action | Description |
| ------- | ------------------ | ---------------------------------------------------------- |
| `B` | `save-as-bookmark` | Save selected nodes as bookmarks (node must has `bufname`) |

## Config

See `:help fern-bookmark-variable`.

## License

The code in fern-bookmark.vim follows MIT license texted in [LICENSE](./LICENSE).
Contributors need to agree that any modifications sent in this repository follow the license.