Git Product home page Git Product logo

Comments (9)

loqusion avatar loqusion commented on August 27, 2024

What are you using to close the buffer?

from true-zen.nvim.

TheCedarPrince avatar TheCedarPrince commented on August 27, 2024

@loqusion - I use :TZFocus to open up the file in a "focused" buffer and then :TZFocus to close it to bring me back to my tab which is what I thought was the correct usage.

from true-zen.nvim.

loqusion avatar loqusion commented on August 27, 2024

All :TZFocus really does is run any configured callbacks and run :tab split or :tabclose depending on whether it's running or not, so that's kind of weird. Do you have a neovim config or snippet that can reproduce the issue?

from true-zen.nvim.

TheCedarPrince avatar TheCedarPrince commented on August 27, 2024

This is where I am confused as I am not sure what is happening as it doesn't seem to be related to any snippet - currently, my configuration is the default configuration for TrueZen as of this moment. A simple config would be to just have TrueZen.nvim installed via Packer in your init.lua and that is it. To reproduce my issue, I would say have two tabs open and in each tab have open maybe two or three buffers. Then, from Tab 1 open up a focused buffer via :TZFocus and then close it when done using :TZFocus. Do the same with Tab 2. Then, if it works as I expected, after repeating this switching for a while you should at some point see a tab get automatically closed after calling :TZFocus` sometime leaving just one tab with the correctly configured buffer and another tab that is now just the single previously focused buffer.

The behavior is very inconsistent and I haven't been able to track down when exactly it happens yet nor what version of TrueZen it seems to be coming from. I am away from my computer that has Packer configured so I can't reproduce a video of the behavior at the moment.

from true-zen.nvim.

loqusion avatar loqusion commented on August 27, 2024

It could be that another part of your config, or perhaps another plugin, is interacting in such a way that it erroneously closes your original tab upon exiting focus mode, perhaps with an autocommand. If you could provide the rest of your config in a repository it could help me locate the issue.

Also, if you aren't using the latest version of true-zen then the issue could possibly lie there.

from true-zen.nvim.

TheCedarPrince avatar TheCedarPrince commented on August 27, 2024

Ooof - I won't have access to that computer for a couple weeks. Thanks for the help and I will post back the issue but it could very well be a version issue or plugin interference. Do you have any suggestions on how to back up a neovim config to GitHub by the way? Any nice tools available for it or is the best route just to go into your config environment at do git init and then manage it manually from there using git?

from true-zen.nvim.

TheCedarPrince avatar TheCedarPrince commented on August 27, 2024

Thanks for all the support by the way @loqusion ! 😄

from true-zen.nvim.

loqusion avatar loqusion commented on August 27, 2024

Do you have any suggestions on how to back up a neovim config to GitHub by the way? Any nice tools available for it or is the best route just to go into your config environment at do git init and then manage it manually from there using git?

There are various ways to go about it, some people prefer a utility like chezmoi while I personally prefer using a bare git repo. There are lots of dotfiles repos on GitHub that you can take inspiration from. Whatever way you choose to go about it, it's important to have a backup of all your valuable dotfiles in case you lose them or you need to configure your development environment on a new system.

Thanks for all the support by the way @loqusion ! 😄

No problem! :P

from true-zen.nvim.

BitInByte avatar BitInByte commented on August 27, 2024

Hello, first of all, thanks for the amazing plugin.

I'm experiencing a similar bug but in my case, when I use :TZFocus, it just opens a new tab, just fine but then, when I use :TZFocus again, instead of going directly to the tab where I issued the command :TZFocus previously, it just go to the same tab where the "fullscreen" tab were which ends up of being another tab that has nothing to do with it.

I can go easily back to the splits again where I issued the command :TZFocus for the first time with the :tabprev command, and it would go back to the splits tab it just feels strange.

Basically, this is what happens:
tabs: [1, 2, 3, 4, 5]
There's a split with 2 windows on tab 2. On one of them I Issue the command :TZFocus.
It creates a new tab with the content of the window where I Issued the command. In this case, we will have the split on tab 2 and the "fullscreen" on tab 3. Then, on tab 3 with the "fullscreen", I issue the command again :TZFocus.
Now, after issuing that command, the tab 3 get's closed but now, instead of redirecting to the tab 2 to go back to the split windows, it just stays on tab 3 which in this case is a tab that has nothing to do with the original content.

from true-zen.nvim.

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.