Coder Social home page Coder Social logo

Comments (11)

rafo avatar rafo commented on June 3, 2024 1

So, for now, a false alarm for your great plugin!

from nnn.nvim.

JefeDavis avatar JefeDavis commented on June 3, 2024 1

just in case anybody else runs into this, if you have NNN_FIFO set already, you will hit this issue. use -a instead of setting a global NNN_FIFO variable if you need fifo, i spent way more time then i care to admit scratching my head on this one

from nnn.nvim.

rafo avatar rafo commented on June 3, 2024

When I change tabs = true to false, explorer mode doesn't work.

from nnn.nvim.

luukvbaal avatar luukvbaal commented on June 3, 2024

I saw an error when tabs == false which I fixed in the latest commit, did you not see this?
Please confirm your issue is fixed.

from nnn.nvim.

rafo avatar rafo commented on June 3, 2024

Updated right now:

nnn.nvim 6.69ms  start
c3e00b3 fix: nil index when cfg.explorer.tabs is false

the tabs = false problem is gone. The Return Problem is still there. ;D

from nnn.nvim.

luukvbaal avatar luukvbaal commented on June 3, 2024

I'm not sure why Enter / Return wouldn't work. Perhaps you are not in terminal mode, could you send a screenshot? Or just try pressing "i" first, if that solves it you should check what in your config makes you leave terminal mode.

from nnn.nvim.

rafo avatar rafo commented on June 3, 2024

asciicast

Since the picker works, I am not sure how I can be not in terminal mode.
I tested zsh without vim mode, but that doesn't change anything. The tabs = false problem is gone, Explorer Mode works now in kitty and macOS terminal.

I will restart my Mac without any zshenv and zshrc – ...

from nnn.nvim.

luukvbaal avatar luukvbaal commented on June 3, 2024

Yeah no doesn't look like terminal mode is the issue (:h Terminal-mode). You could try adding debug print() statements to read_fifo() or handle_files() if that even gets called, maybe:

diff --git a/lua/nnn.lua b/lua/nnn.lua
index bf1ef30..fad789d 100644
--- a/lua/nnn.lua
+++ b/lua/nnn.lua
@@ -146,6 +146,7 @@ local function read_fifo()
       end
       fpipe:open(fd)
       fpipe:read_start(function(rerr, chunk)
+        vim.print(rerr, chunk)
         if not rerr and chunk then
           S(function()
             handle_files(chunk:gmatch("[^\n]+"), "explorer", tab)

Then try opening a file in :NnnExplorer.

from nnn.nvim.

rafo avatar rafo commented on June 3, 2024

It looks like a restart without my zshenv and zshrc fixed the problem. I will locate the malicious setting and keep you updated. Maybe something is hijacking return in Explorer Mode.

Interesting.

from nnn.nvim.

rafo avatar rafo commented on June 3, 2024

Just to keep you informed:

  1. Merged my env and rc
  2. Removed all alias.
  3. Test: return works!
  4. Enabled alias files one by one and tested every time until all aliases are enabled again: return still works!
  5. Insert surprised_pikachu.jpg

So… maybe a zsh hiccup… cache… I don't know.

from nnn.nvim.

rafo avatar rafo commented on June 3, 2024

i spent way more time then i care to admit scratching my head on this one

That's the cost of living in the Command Line Interface.

from nnn.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.