Comments (3)
Can't reproduce with vim 9.1 and nvim. Here's my steps:
mkdir -p ~/A
andmkdir -p ~/B
cd ~/A
vim B/test4.txt -c "cd ~/B"
CocList mru
,B/test4.txt
exists
from coc.nvim.
- vim B/test4.txt -c "cd ~/B"
Missing the ~/
before B, which create a folder under current folder A. C-g
will print ~/A/B/test4.txt
.
Using vim ~/B/test4.txt -c "cd ~/B"
instead.
from coc.nvim.
Reproduced. The core issue is workspace root detecting.
vim ~/B/test4.txt -c "cd ~/B"
still uses ~/A
as cwd, by default, mru
only lists files that under current cwd, that's why test4 is missing. You can use :CocList mru -A
to list all.
https://github.com/neoclide/coc-lists/blob/720f8713860a6c45be6aac6b042416c9de680173/src/mru.ts#L95
coc.nvim didn't change the root at cmd -c "cd ~/B"
. Looks like vim didn't fire DirChanged
on the cmd.
coc.nvim/src/core/documents.ts
Lines 84 to 86 in 26d7db1
from coc.nvim.
Related Issues (20)
- An action opens up a new tab, but I want the 'drop' behavior. #1251 HOT 1
- API for check if there is a slection of the completion HOT 1
- Multiple vim tasks invoke mutiple clangd processes with coc-clangd plugin HOT 2
- How to close the document window in insert mode? HOT 2
- Ignoring `$NVIM_APPNAME` to generate files and directories HOT 1
- Support inlineCompletion
- Activate CoC extension based on current file type HOT 1
- Remove ansi escape sequence from code lens HOT 2
- New configuration like VSCode's editor.defaultFormatter HOT 9
- Open coclist diagnostics in a split pane HOT 3
- Change background color of floating windows
- `"diagnostic.separateRelatedInformationAsDiagnostics"` makes everything of customized typescript LS super lag in the file with lots of diagnostics HOT 3
- Text edits with the same start position are applied in reverse HOT 4
- cant jump to next parameter HOT 1
- using TAB for completion failed in local variable completion, when using vim with godot LSP HOT 5
- Why does it not work to use <c-space> to refresh in vim? HOT 1
- [Feature Request] Call custom function when navigating the CocList HOT 6
- what is `menu` in `suggest.formatItems` ? HOT 1
- New command named CocStop HOT 5
- Unhandled Rejection Error: "Can't find directory 'list:' in cdpath" when Using :CocList Commands HOT 5
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 coc.nvim.