Comments (11)
@ldelossa welcome! and thanks for the detailed bug report.
from nnn.vim.
So you mean the other buffer windows are being closed when opening a file via nnn using the custom action key-bindings? What's your vim/neovim version?
from nnn.vim.
I went to retry this, but now I cannot get ctrl-x and crtl-v to open in a split. Is there a known issue? Here is my vimrc - https://github.com/ldelossa/dotfiles/blob/master/vimrc
When I attempt a ctrl-x in the nnn window, it simply opens the file in the current buffer, no split is used.
from nnn.vim.
Hi @ldelossa thanks for getting back on the issue. I'm able to replicate the bug.
I made a branch that contains a fix to be tested. You can test it using Plug 'mcchrish/nnn.vim', { 'branch': 'fix-issue-27' }
.
from nnn.vim.
@mcchrish that did fix the issue. And now I can give a better example of the issue I face.
Open one buffer, and have nnn open a horizontal split:
Now I put focus on the buffer below, and I open nnn, and I want to make a vertical split. My assumption is that the bottom buffer gets split into two. But instead a vertical split takes over both buffers:
There is also a quick error message that pops up when attempting to do that which I didn't catch.
My desired result using netrw is as follows:
Contents of the buffers are arbitrary, just the layout is what I'm expressing.
from nnn.vim.
You can check the error my running :messages
.
I think I got it fixed. It might be due to the split explorer feature I've added, and the internal logic of switching back previous buffer from the nnn buffer after opening a file. Do you mind testing again?
from nnn.vim.
@mcchrish looks like the issue is still there. It seems like any buffer manipulation I try that involves more then two spits (whether horizontal or vertical) results in only two buffers (the newly created split is just placed as a full length vertical or horizontal buffer with the other one currently in focus)
from nnn.vim.
I somehow able to replicate the issue, but fixed in the latest commit.
What's the output of :messages
after seeing the issue? Can you reproduce it with a minimal vimrc? e.g.
" minimalvimrc file
set nocompatible
set noswapfile
call plug#begin('~/.local/share/nvim/plugged')
Plug 'mcchrish/nnn.vim', { 'branch': 'fix-issue-27' }
call plug#end()
let g:nnn#action = {
\ '<c-x>': 'split',
\ '<c-v>': 'vsplit' }
Then nvim -u minimalvimrc
from nnn.vim.
- open nvim
- run
:NnnPicker
- open a file pressing
enter
- run
:NnnPicker
- open a file pressing
<c-x>
to open it in a split - focus on the split below
- run
:NnnPicker
- open a file pressing
<c-v>
to open it in a vertical split
from nnn.vim.
@mcchrish my fault, plug didn't update to the latest commit. This in fact working now!
Thanks this is a much better workflow now.
from nnn.vim.
Anytime.
from nnn.vim.
Related Issues (20)
- It takes forever to open, is it normal? HOT 10
- Action setting not working on vim 8.1 HOT 4
- Not saving context state after opening a file HOT 4
- Typo in README HOT 1
- nnn changes the vim PWD to the directory which it quitted HOT 8
- Problem open file with l HOT 1
- `:NnnExplorer` bugs and additional features HOT 33
- Error when using fzopen after changing directory HOT 14
- Explorer window does not close properly when multi tabs have their own opened explorer window HOT 1
- Picker picks the wrong file if a directory with similar name exists HOT 1
- clipboard does not work HOT 3
- ftplugin sets a global option (`noshowmode`)
- When NnnExplorer is invoked via <Leader> key combination the first 10 entries are already tagged ???? HOT 2
- Unexpected behavior when "NnnExplorer" is invoked via a <leader>key combination. HOT 3
- Error when mapping action to <backspace> HOT 3
- Error when exiting nnn picker without choosing a file. HOT 3
- Undefined variable: g:nnn#action in ftplugin/nnn.vim
- Unknown function: term_getstatus in ftplugin/nnn.vim HOT 1
- Colors in nnn.vim don't seem to work always HOT 1
- local sessions not working HOT 3
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 nnn.vim.