Skip to content
forked from imsnif/monocle

A Zellij plugin to fuzzy find file names and contents in style 🧐

License

Notifications You must be signed in to change notification settings

Jengamon/monocle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preview

About

This Zellij plugin is a fuzzy finder for file names and their contents.

It can open results in your $EDITOR (scrolled to the correct line), as floating or tiled panes.

It can open a new terminal pane to the location of the file, as a floating or tiled pane.

It will ignore hidden files and respect your .gitignore. If you press ESC or Ctrl c, it will hide itself until you call it again.

Installation

  1. Download the monocle.wasm file from the release matching your installed Zellij version
  2. Place it in ~/zellij-plugins
  3. From inside Zellij, run zellij action new-pane --plugin file:~/zellij-plugins/monocle.wasm --floating

How do I invoke monocle with a keybinding?

Add the following to your zellij config somewhere inside the keybinds section:

shared_except "locked" {
    bind "F1" {
        LaunchOrFocusPlugin "file:~/zellij-plugins/monocle" {
            floating true
        }
    }
}

Development

Load the dev.kdl layout from inside zellij: zellij action new-tab -l dev.kdl or from outside Zellij with zellij -l dev.kdl

Known issue

Does not deal well with extremely large folders, PRs welcome for smart limitations.

About

A Zellij plugin to fuzzy find file names and contents in style 🧐

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%