Comments (7)
Can you clarify what you mean by directory structure? Can you provide a screenshot or video showing the problem?
from goto-preview.
First,I have open a working directory and open some cpp file into buffers.
when i use goto-preview to find a definition which the file is not in the currect working directory. As the result, the working directory will be changed.
Finally, I close the goto-preview flowting window, the working directory has been changed, and only in the parent directy of the focused buffer.
from goto-preview.
First,I have open a working directory and open some cpp file into buffers.
when i use goto-preview to find a definition which the file is not in the currect working directory. As the result, the working directory will be changed.
Finally, I close the goto-preview flowting window, the working directory has been changed, and only in the parent directy of the focused buffer.
from goto-preview.
Was this issue resolved? Was it a non-issue?
from goto-preview.
not resolved:
ex: I am in the A/B/C/demo.cpp, the demo.cpp has a reference call to D/called.cpp.
use the goto-preview, the directory will be changed to the D/call.cpp.
when close the goto-preview, the directory will be changed to the C/demo.cpp, that's a trouble.
every time, I need to open the directory to A/B/C/demo.cpp
from goto-preview.
I see. This has nothing to do with goto-preview. You probably have some other plugin changing the your cwd
to whatever the directory of the newly opened buffer is. Goto preview merely navigates you to the new buffer, it does not touch your cwd
.
from goto-preview.
I got it. Thanks for your help. and i find the root cause:
the nvim-tree.lua has option in the setup block, like
updata_focused_file = {
enable = true,
update_cwd = true,
ignore_list = {},
}
After set the "update_cwd" to false, this issue is gone.
from goto-preview.
Related Issues (20)
- Esc to close the floating window (similar functionality as telescope.nvim) HOT 1
- [FEATURE] add `post_close_hook` option which executes after `close_all_win()` HOT 2
- [BUG] Do not work with lazy? HOT 2
- [FEATURE] Better floating window focusing method HOT 1
- [BUG] Preview window won't show if "dismiss_on_move = true" and "focus_on_open = true" HOT 1
- [FEATURE] Close floating window when cursor leaves buffer HOT 3
- [Feature] Only show the first implementation HOT 3
- Provide an option for making preview window unchangeable. HOT 7
- [BUG] incorrect floating window closed in case multiple floating previews are opened HOT 5
- [FEATURE] Configurable starting zindex HOT 3
- [FEATURE] Close Currently focussed preview window with q HOT 2
- [FEATURE] Trigger goto-preview from any Telescope.nvim picker
- [FEATURE] HOT 5
- How to close only one preview and how to open focused preview in current split but new buffer?
- Setting on `post_open_hook` will be shared if I split window? HOT 1
- [BUG] attempt to index field 'lsp_configs' (a nil value) HOT 9
- [FEATURE]: 'Enter' key in a preview window to close all preview windows and go to the definition,refs, etc HOT 6
- Filename in float window
- Getting "Invalid key" error when go to definition HOT 6
- [FEATURE]: Toggle single preview window and show definition automatically when cursor moving in source window. 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 goto-preview.