Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yukimemi/fall-source-chronicle
fall.vim source for chronicle.vim
https://github.com/yukimemi/fall-source-chronicle
denops neovim vim vim-fall vim-fall-source
Last synced: about 2 months ago
JSON representation
fall.vim source for chronicle.vim
- Host: GitHub
- URL: https://github.com/yukimemi/fall-source-chronicle
- Owner: yukimemi
- License: mit
- Created: 2024-11-17T16:37:14.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-17T17:22:37.000Z (about 2 months ago)
- Last Synced: 2024-11-17T18:25:50.585Z (about 2 months ago)
- Topics: denops, neovim, vim, vim-fall, vim-fall-source
- Language: TypeScript
- Homepage: https://jsr.io/@yukimemi/fall-source-chronicle
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fall-source-chronicle
This is the [chronicle.vim](https://github.com/yukimemi/chronicle.vim) source of [fall.vim](https://github.com/vim-fall/fall.vim)
## Requirement
- [yukimemi/chronicle.vim: Denops Chronicle](https://github.com/yukimemi/chronicle.vim)
- [vim-fall/fall.vim: 🍂 Yet Another Fuzzy Finder designed for Vim and Neovim and implemented in Denops](https://github.com/vim-fall/fall.vim)## Sample configuration
- FallCustom
```typescript
import * as builtin from "jsr:@vim-fall/std/builtin";
import type { Entrypoint } from "jsr:@vim-fall/custom";
import { chronicle } from "jsr:@yukimemi/fall-source-chronicle";
import { composeRenderers, refineSource } from "jsr:@vim-fall/std";const myPathActions = {
...builtin.action.defaultOpenActions,
...builtin.action.defaultSystemopenActions,
...builtin.action.defaultCdActions,
};
const myMiscActions = {
...builtin.action.defaultEchoActions,
...builtin.action.defaultYankActions,
...builtin.action.defaultSubmatchActions,
};export const main: Entrypoint = (
{
definePickerFromSource,
refineSetting,
},
) => {
refineSetting({
coordinator: builtin.coordinator.modern,
theme: builtin.theme.MODERN_THEME,
});const defineChroniclePicker = (mode: "read" | "write") => {
definePickerFromSource(
`chronicle:${mode}`,
refineSource(
chronicle({ mode }),
builtin.refiner.exists,
builtin.refiner.relativePath,
),
{
matchers: [builtin.matcher.fzf],
sorters: [builtin.sorter.noop],
renderers: [
composeRenderers(builtin.renderer.smartPath, builtin.renderer.nerdfont),
builtin.renderer.noop,
],
previewers: [builtin.previewer.file],
actions: { ...myPathActions, ...myMiscActions },
defaultAction: "open",
},
);
};defineChroniclePicker("read");
defineChroniclePicker("write");
};
```## License
Licensed under MIT License.
Copyright (c) 2024 yukimemi