Code Monkey home page Code Monkey logo

telescope-tele-tabby.nvim's Introduction

tele-tabby.nvim

A tab switcher extension for Telescope with information about each tab's working directory.

Tab Preview

Each Tab is shown with the path to the current buffer split into two parts.

Tab Description

The project root is found by searching for a .git file. The file is shown with devicon colors which can be disabled. If the buffer is not in the tab's cwd the full path is shown, this makes it easy to see a buffer which may have been opened in the wrong tab.

The extension is useful for a worklow where each tab is given its own working directory with tcd. This allows you to use separate tabs to limit the results to the working directory when using telescope tools like find_files.

Requires

telescope to be installed.

Exports

teletabby.list

  • require('telescope').extensions.tele_tabby.list()

Can be called with :Telescope tele_tabby list

Recomended Setup

If you are using gruvbox color scheme the inverted highlighting can be turned off

let g:gruvbox_invert_selection=0

I prefer to use telescope's builtin dropdown theme

  local opts = themes.get_dropdown {
    winblend = 10,
    border = true,
    previewer = false,
    shorten_path = false,
    heigth=20,
    width= 120
  }
  require'telescope'.extensions.tele_tabby.list(opts)

Configuration

require('telescope').setup {
    extensions = {
        tele_tabby = {
            use_highlighter = true,
        }
    }
}

Options

Keys Description Options
use_highlighter Use devicon colors for the end of the path true/false

TODO

Add more configuration options

  • how to choose project root
  • shorten paths

telescope-tele-tabby.nvim's People

Contributors

tc72 avatar jedrzejboczar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.