Giter VIP home page Giter VIP logo

Comments (15)

ptzz avatar ptzz commented on August 22, 2024 1

Could you try this branch https://github.com/ptzz/lf.vim/tree/fix-custom-lf-path? It seems the introduction of floaterm broke custom path to lf.

from lf.vim.

ptzz avatar ptzz commented on August 22, 2024

Does it work with an empty lfrc?

I tried with your lfrc and it works for me. Are you sure you're executing the open command (i.e. not edit) from lf?

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

Works as intended with an empty lfrc, and works as intended with everything else except those two lines (rifle).
And yea, i've tried open, edit, open with. None works.

from lf.vim.

ptzz avatar ptzz commented on August 22, 2024

Ok, I don't know what's wrong. For me, when running lf with -last-dir-path and -selection-path arguments (i.e. as a file selector), the selected/opened file is just written to the specified path and any action associated with open in lfrc is ignored.

Does it work if you use e.g. cat instead of rifle? Maybe try remove the set ifs part as well.

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

set ifs "\n" has nothing to do with it from what i've tested now. It's all in the cmd open $set -f; rifle -p 0 $fx line. I don't know what you mean by using cat instead of rifle, if you give me a line of what you mean i'll test it.
I also noticed that when I "solve" the problem, it opens in a new terminal instead of opening in my current terminal. So maybe it's just hopeless.

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

Peek_2022-08-24

from lf.vim.

ptzz avatar ptzz commented on August 22, 2024

Try with only this in the lfrc and check if it still misbehaves:

cmd open ${{
    cat $f
}}

I also noticed that when I "solve" the problem, it opens in a new terminal instead of opening in my current terminal. So maybe it's just hopeless.

You mean with an empty lfrc, the file gets opened in a new vim session in another terminal..?

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

You mean with an empty lfrc, the file gets opened in a new vim session in another terminal..?

Exactly this, I recorded a gif but it doesn't look clear enough, let me try again.

from lf.vim.

ptzz avatar ptzz commented on August 22, 2024

I see now..

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

2terminals

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

Try with only this in the lfrc and check if it still misbehaves:

cmd open ${{
    cat $f
}}

Looks like it does the command inside of floaterm too.

cat

from lf.vim.

ptzz avatar ptzz commented on August 22, 2024

That's super weird, it should do nothing except return to originating vim session with the selected file opened. No clue what's going on. I'm on a Mac with lf --version 27, NVIM v0.7.2.

How do you start Lf, just :Lf command?

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

I'm using the default map map <leader>f :Lf<CR>.
The only thing I changed is

if exists('g:lf_command_override')
  let s:lf_command = g:lf_command_override
else
  let s:lf_command = '~/.config/lf/lf'
endif

My lf is an appimage, so I needed to change that. Latest version lf r27 and nvim v0.7.2 too. Also I'm on Kubuntu 22.04.1 LTS.

from lf.vim.

sergiza avatar sergiza commented on August 22, 2024

Could you try this branch https://github.com/ptzz/lf.vim/tree/fix-custom-lf-path? It seems the introduction of floaterm broke custom path to lf.

It fixed it! For now, it seems like everything works as intended.
Thank you for taking the time to help.

from lf.vim.

ptzz avatar ptzz commented on August 22, 2024

👍

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