Comments (9)
hhhh no issues, I was planning to open a PR, but I was asking if there's a specific place where I can inject the new option. no worries.
Would be here:
But I'm torn, wouldn't be default_selection_index = 2
pretty much more than fine for 95%+ of users rather than introducing another option? Mhm.
from telescope-file-browser.nvim.
Isn't that essentially achieved with :Telescope file_browser default_selection_index=2
? And of course you can pass default_selection_index = 2
to opts of lua function call and extension setup analogously (also just tried it).
I'm confident enough that I can close this 😅 Let me know otherwise :)
This is also much preferred because users then can have it as they want. I have not clue whether that should be the default behavior, I most often fuzzy search anyways.
Maybe this could be added to the wiki or something. Once I find some more motivation/time to work on file browser, I'll tidy up the wiki.
from telescope-file-browser.nvim.
NICE! indeed it fix my issue. it's kind annoying in that you could see the highlighter jump down after switching but it's good enough. The reason I'm using it like that is because usually when browsing files, I don't do fuzzy match because I'm reviewing files one by one, like I would do with ranger.
I have not clue whether that should be the default behavior, I most often fuzzy search anyways.
him yah hmm I'd vote for it to be default behavior with finding a work around for the noticeable switch to index 2.
Thanks @fdschmidt93
from telescope-file-browser.nvim.
It's kind annoying in that you could see the highlighter jump down after switching but it's good enough.
What do you mean? When I open the file browser, I don't see any flickering of sorts. Otherwise, it's a telescope upstream issue if you look at pickers.lua how selection is initially set on the first entry and then set anew on once finding is completed (very fast w/o prompt anyways), assuming I'm reading the code correctly at a quick glance. In any case, upstream issue. But even then, on initial sorting it should always be plenty fast (unless depth=false
or something like that is set).
Nothing I could do from within telescope-file-browser.nvim
would be able to change that as I'd only be able to infer the selection index via some loop (which is not needed..). In other words, I'd practically always be using the same logic of setting a selection.
him yah hmm I'd vote for it to be default behavior with finding a work around for the noticeable switch to index 2.
Fine by me I guess, could you please make a PR? :) Would have to be added to pconf
of https://github.com/nvim-telescope/telescope-file-browser.nvim/blob/master/lua/telescope/_extensions/file_browser.lua
from telescope-file-browser.nvim.
What do you mean? When I open the file browser, I don't see any flickering of sorts.
it's barely noticeable but there is an initial indication of the movement the selection.
Otherwise, it's a telescope upstream issue if you look at pickers.lua how selection is initially set on the first entry and then set anew on once finding is completed (very fast w/o prompt anyways), assuming I'm reading the code correctly at a quick glance. In any case, upstream issue. But even then, on initial sorting it should always be plenty fast (unless depth=false or something like that is set).
Yes, definitely an upstream thing. also cursor the stop filkers. hmm I should open an issue for this to track it
Nothing I could do from within telescope-file-browser.nvim would be able to change that as I'd only be able to infer the selection index via some loop (which is not needed..). In other words, I'd practically always be using the same logic of setting a selection.
Or maybe an option to hide ../
all together, since in many cases it isn't needed with the intuitive mappings in #65. Any clue where I can control the the visibility of ../
?
from telescope-file-browser.nvim.
Any clue where I can control the the visibility of ../
Not yet an option. PR welcome :) (E: though Idk, with default_selection_index = 2
it should be solved, rather than introducing yet another option.. mhm, not sure why it's so sluggish here). Sorry, I'm just quite lazy atm as I'm personally also largely happy with telescope-file-browser
and worked plenty on it the past few weeks 😅 And then I'm happy if anyone capable chimes in :)
it's barely noticeable but there is an initial indication of the movement the selection.
I'd say it's quite noticeable actually; strange. For me that kind of flickering doesn't even occur in the slightest -- it's always instant. Even if I turn CPU freq to super low. I also tried the 0.6.1
appimage and doesn't occur for me there. Not sure why it differs so dramatically for me.
from telescope-file-browser.nvim.
Sorry, I'm just quite lazy atm
hhhh no issues, I was planning to open a PR, but I was asking if there's a specific place where I can inject the new option. no worries.
worked plenty on it the past few weeks
Yah I appreciate that a lot, there was multiple efforts to get this project on it feats 😆 but now it's in a great state.
I'd say it's quite noticeable actually; strange. For me that kind of flickering doesn't even occur in the slightest -- it's always instant. Even if I turn CPU freq to super low. I also tried the 0.6.1 appimage and doesn't occur for me there. Not sure why it differs so dramatically for me.
I'd say it's macos and m1 faults 🤣 should've listened to conni and not bought this machine.
from telescope-file-browser.nvim.
Hmmm yah, idk, on one note, it is aesthetically pleasing to remove things you don't use, on the other hand it introduce yet another option. Given that this the default view of most terminal file browser, I believe this is an important option to have.
from telescope-file-browser.nvim.
Ok :)
from telescope-file-browser.nvim.
Related Issues (20)
- Search doesn't show hidden files in some folders HOT 2
- Is it possible to get whether a user open a file or exit the browser? HOT 4
- Bug when using collapse_dirs set to true HOT 4
- file/folder names getting truncated during file creation
- How to open a path in `:edit <path>`? HOT 2
- `goto_parent_dir` is not reliable HOT 2
- Indicator for modified files within git submodule directory? HOT 4
- Incorrect Parent Folder Name When Moving Folders HOT 13
- File browsing too slow in large git repository HOT 2
- Navigate to specified path HOT 4
- [question] Custom command for `remove` action? HOT 2
- Getting Error when using a dot in file path cwd `cwd = "~/.config/"` ERROR:'replacement string' item co ntains newline' HOT 4
- [question] Creating `file_browser._picker` with custom setup HOT 3
- Searching for a file suddenly works quite different HOT 2
- files = true opt for picker = freeze / 100% CPU load HOT 4
- add windows to ci HOT 1
- (question): how to disable search bar HOT 2
- Option to flatten/collapse empty directories HOT 1
- fzf as THE search engine for faster results pasing HOT 5
- Wrong path is used in Windows when %HOMEDRIVE% points to other drive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telescope-file-browser.nvim.