Giter Club home page Giter Club logo

Comments (10)

jarun avatar jarun commented on May 31, 2024 1

Awesome! Please let me know if we need to change anything in nnn.

from nnn.vim.

mcchrish avatar mcchrish commented on May 31, 2024

Turns out nnn.vim can do this already. See example https://github.com/mcchrish/nnn.vim#layout

See also junegunn/fzf.vim#664 since nnn.vim is pretty much implemented the same way.

from nnn.vim.

jarun avatar jarun commented on May 31, 2024

Can you please add an example of how to use floating windiw with vim?

from nnn.vim.

jarun avatar jarun commented on May 31, 2024

Also, is it possible to have a persistent window at the left with the "Or pass a dictionary with window size" example? When I open a file, the complete terminal is used by that file and the bar to the left isn't visible anymore.

from nnn.vim.

mcchrish avatar mcchrish commented on May 31, 2024

Will probably leave this issue open to tackle on the vim feature. Not yet familiar as to how vim implements floating window.

is it possible to have a persistent window at the left

Seems to be similar to what others request where the nnn window stays open in the left. It's probably possible to do this by interacting with nnn via stdout.

from nnn.vim.

jarun avatar jarun commented on May 31, 2024

@mcchrish any update on this? This would be a very useful feature for nnn.vim users.

from nnn.vim.

jarun avatar jarun commented on May 31, 2024

Thank you so much for this @mcchrish!

from nnn.vim.

jarun avatar jarun commented on May 31, 2024

BTW, is this configurable? Can I still choose to use the floating window or the side pane?

from nnn.vim.

mcchrish avatar mcchrish commented on May 31, 2024

Yes it's configurable. You can change the size, offset, border style and border color of the window.

let g:nnn#layout = { 'window': { 'width': 0.9, 'height': 0.6, 'highlight': 'Debug' } }

All the other types of layout still works including side pane.

from nnn.vim.

jarun avatar jarun commented on May 31, 2024

@mcchrish Can we close this?

from nnn.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.