princejoogie / dir-telescope.nvim Goto Github PK
View Code? Open in Web Editor NEWPerform telescope functions in a selected directory
License: Other
Perform telescope functions in a selected directory
License: Other
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
No response
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.
No response
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.
NVIM v0.9.0-dev-280+gfae754073
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
cc77713294892c5bbce26adee665114250624e6b
Please insert instruction for how to get the relevant log in here. Otherwise, it is not very useful.
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
When I live grep or find files, I get the message The
no_ignorekey is not available for the
findcommand in
get_dirs.
0.8.3
0.1.1
The `no_ignore` key is not available for the `find` command in `get_dirs`.
It still opens up the search window, after the message disappears
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.
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?
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
latest (pristine installation)
No response
~/.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 })
I don't feel that showing a previewer upon the directory selection is useful, can we have a way of configuring it?
No response
Running this command takes a really long time as you're doing a scan_dir
without any kind of lazy loading.
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
0.1.0
No response
No response
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 :)
No response
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:
ignore_patterns = { ".git/*", "foo/bar/*" }
.git
from usersOption 1 would be more flexible and I lean towards that one as a result!
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.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.