Comments (2)
Thanks for the report!
Definitely not by design, but it's a consequence of this logic in the buffer finder:
- List all buffers with
vim.api.nvim_list_bufs()
- For each buffer, check it is loaded with
vim.api.nvim_buf_is_loaded()
; if it is:- Get the name with
vim.api.nvim_buf_get_name()
; and: - Turn it into a relative path with
vim.fn.fnamemodify()
.
- Get the name with
- For each buffer, check it is loaded with
So, the intent of the nvim_buf_is_loaded
check is to skip over "unloaded" buffers, which can cause problems. The api-buffer
docs say this about unloaded buffers:
Unloaded Buffers: ~
Buffers may be unloaded by the |:bunload| command or the buffer's
|'bufhidden'| option. When a buffer is unloaded its file contents are
freed from memory and vim cannot operate on the buffer lines until it is
reloaded (usually by opening the buffer again in a new window). API
methods such as |nvim_buf_get_lines()| and |nvim_buf_line_count()| will be
affected.
I'm concerned that if I remove the nvim_buf_is_loaded
check I'll wind up introducing a regression; but I didn't have this kind of thing in the Ruby version (the scanner was just parsing :ls
output), so this code is pretty new (added in 0b8c9ed, "feat(lua): continue sketching out UI", July 20, 2022).
I can certainly play around with removing it, and if I can't do that, I might be able to do some special-casing to detect when Neovim has just launched and skip the check in that case...
from command-t.
Thanks @wincent that's fixed it for me! I appreciate your efforts.
from command-t.
Related Issues (20)
- Strange interaction with vim-gitgutter HOT 2
- [Question] why does RubyGems version of this package contains '../..' in the gem data path? HOT 4
- Error on Compiling Command-T Plugin (clang) HOT 17
- use `watch-project` rather than deprecated `watch` HOT 3
- Release plan for Lua rewrite HOT 1
- 🆕 Command-T 6.0.0 release — compendium issue HOT 42
- 💡 Ideas for improvements — compendium issue HOT 7
- Getting aborted when running CommnadT in lua version HOT 7
- Deal with filenames containing carriage returns 🤦
- Use Lua Version with Vim Plug HOT 1
- Can only type one letter in Popup window HOT 5
- Missing documentation about the initial usage HOT 2
- Backspace key closes Command-T and enters insert mode HOT 5
- Installation Instructions Unclear HOT 4
- bug: `invalid option '%-100' to 'format'` HOT 2
- Implement Lua equivalent of `g:CommandTTraverseSCM` setting HOT 5
- Upgrade issues - MacOS Ventura - command-t.vim could not load the C extension HOT 2
- Trouble getting command-t to work HOT 4
- Add timeout during long filesystem traversal HOT 9
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 command-t.