Giter Club home page Giter Club logo

dir-telescope.nvim's Introduction

I'm a Student, Musician, Developer, and a Hardware (microcontrollers) Enthusiast!

dir-telescope.nvim's People

Contributors

princejoogie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dir-telescope.nvim's Issues

bug: Telescope dir not showing directories list

What happened?

after setting up telescope and dir-telescope, once I try to run Telescope dir live_grep , Telescope opens up with a selection, but all I get is a blank list, no error messages, just a blank list. Looks like it is not loading my current directory?

image

Neovim Version

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1692716794

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/__w/neovim/neovim/build/nvim.AppDir/usr/share/nvim"

Run :checkhealth for more info

Telescope.nvim Version

latest (pristine installation)

Relevant log output

No response

Additional notes

~/.config/nvim/init.vim

call plug#begin("~/.config/nvim/plugged")
  " close brackets
  Plug 'KermitPurple/vim-closer'
  Plug 'nvim-lua/plenary.nvim'
  Plug 'nvim-telescope/telescope.nvim'
  Plug 'princejoogie/dir-telescope.nvim'
  Plug 'Mofiqul/dracula.nvim'
  Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'make' }
            " Visualize the undotree with telescope
  Plug 'debugloop/telescope-undo.nvim'
        Plug 'nvim-tree/nvim-web-devicons'
        Plug 'nvim-pack/nvim-spectre'
call plug#end()

let mapleader = " "
set nomodeline
set termguicolors
set mouse=a
set nobackup
set tabstop=2
set ttyfast
set showcmd
set number relativenumber

colorscheme dracula

nnoremap <leader>ff <cmd>Telescope find_files<cr>

lua << EOF
  require('nvim_config')
EOF

~/.config/nvim/lua/nvim_config.lua

require('telescope').setup(
  {
    defaults = {
      layout_config = {
        horizontal = { width = 0.85 }
      },
    },
  pickers = {
        live_grep = {
            mappings = {
                i = { ["<c-f>"] = require('telescope.actions').to_fuzzy_refine },
            },
        },
    },
  }
)

local telescope = require('telescope')
telescope.load_extension('fzf')
telescope.load_extension('undo')
telescope.load_extension('dir')

vim.keymap.set('n', '<leader>S', '<cmd>lua require("spectre").toggle()<CR>', {
    desc = "Toggle Spectre"
})

vim.keymap.set("n", "<leader>fd", "<cmd>Telescope dir live_grep<CR>", { noremap = true, silent = true })

feat: Can it ask for a directory instead of assuming the directory?

What would you like?

Hi

I want this to ask the user to provide a directory.

Lets say i am in a project directory and i want to live_grep in $HOME, currently it does not let me select that, it will be really nice if we can select any directory and not just project directory.

TIA

Additional notes

No response

bug: hangs on large projects

What happened?

Running this command takes a really long time as you're doing a scan_dir without any kind of lazy loading.

Neovim Version

NVIM v0.9.0-dev-109-g0b71960ab-dirty
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by dolevh@IL-C02FG4W9MD6R

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-0b71960/share/nvim"

Run :checkhealth for more info

Telescope.nvim Version

0.1.0

Relevant log output

No response

Additional notes

No response

feature: search from preselected path in buffer with `gs`

It would be nice, if you could offer or describe the stubs for realizing this.
Analogously, a way to store the search path into a user-defined buffer would be nice.

I dont think one can be faster than searching from a scratch buffer defined path for new filepaths not buffered yet.

Another approach is to search only buffered paths for the initial search, but that is more tailored to someone with 100s of files buffered in nested big monorepos. However, I think any advice on that use case would be helpful.

bug: hidden=false and respect_gitignore=false are not respected within target dir of first selection

What happened?

After selection of the first selection, I can not select a gitignored directory to select a file.
I would expect, that either 1. .gitignore is not respected for both, 2. .gitignore is not respected for the target.

The first selection should always be complete (up to a limit/timeout), as otherwise there is no way to select the vendored/generated/.gitignored subrepository.

Neovim Version

NVIM v0.9.0-dev-280+gfae754073                                                                                                                                                                                     
Build type: RelWithDebInfo                                                                                                                                                                                         
LuaJIT 2.1.0-beta3

Telescope.nvim Version

cc77713294892c5bbce26adee665114250624e6b

Relevant log output

Please insert instruction for how to get the relevant log in here. Otherwise, it is not very useful.

Additional notes

Relevant config:

use { 'princejoogie/dir-telescope.nvim', config = function() require('dir-telescope').setup({hidden = false,respect_gitignore = false,}) end, }

map('n', 'fd', [[FileInDirectory]], opts) -- find files
map('n', 'fs', [[GrepInDirectory]], opts) -- forwardIntoDir searchstring

bug: The `no_ignore` key is not available for the `find` command in `get_dirs`.

What happened?

When I live grep or find files, I get the message The no_ignorekey is not available for thefindcommand inget_dirs.

Neovim Version

0.8.3

Telescope.nvim Version

0.1.1

Relevant log output

The `no_ignore` key is not available for the `find` command in `get_dirs`.

Additional notes

It still opens up the search window, after the message disappears

feat: Integration with scopes

What would you like?

I'm going back and forth between Intellij and neovim because I havn't found plugins that support quite what I need. This plugin gets telescope close. But I came across https://github.com/smartpde/neoscopes that integrates more features. I wished dir-telescope could integrate both, maybe use scopes defined or extend and use it's own definitions. The great concept neoscopes.config.json is a great idea.

Additional notes

No response

feat: timeout or way to abort initial search

What would you like?

If the initial search for files takes too long, then either a timeout should be used or a key for canceling the search be available.

Additional notes

One may not know how long the initial search takes. For example, for me searching from $HOME makes neovim completely unresponsive without anyway to cancel the search.

feat: load the search window faster

What would you like?

Telescope loads in under a second, but this extension's search window loads in like 8 seconds in a large project. It would be nice if the two would be comparable in terms of speed.

Additional notes

Screen.Recording.2023-04-12.at.18.24.11.mov

feat: Add a default dir to bypass cwd in configuration

What would you like?

Heya!

I want to thank you for your amazing job and contribution! I took the liberty of fiddling with the plugin to suit my needs better, as most of the time I find myself wanting to find something from my $HOME.

Adding a default dir to the configuration (default_dir) did exactly this. If it is set, fd finds all the directories inside the default directory instead of cwd, else it resorts to cwd by default.

Take a look if you are interested, I will open a PR :)

Additional notes

No response

feat: Ignore .git directories

What would you like?

By default, the directory picker initializes with a ton of directories in .git when the hidden = true option is set.

It would probably be good to either:

  1. Have a configuration value to omit directory paths, ignore_patterns = { ".git/*", "foo/bar/*" }
  2. Always hide version control directories like .git from users

Option 1 would be more flexible and I lean towards that one as a result!

Additional notes

image

feat: accept previewer and theme options

What would you like?

I don't feel that showing a previewer upon the directory selection is useful, can we have a way of configuring it?

Additional notes

No response

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.