Comments (15)
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.
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.
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.
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.
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.
from lf.vim.
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.
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.
I see now..
from lf.vim.
from lf.vim.
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.
from lf.vim.
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.
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.
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.
👍
from lf.vim.
Related Issues (20)
- Issue on files with spaces with the new floaterm wrapper HOT 1
- lf_replace_netrw not working with vim-floaterm HOT 5
- Issue with parsing name of directory which contains a double dollar sign HOT 3
- Removal of "g:floaterm_open_command" in vim-floaterm broke wrapper
- Opening of the file from LF in Floaterm is broken "
- Floaterm wrapper API change HOT 1
- How to not use floatterm HOT 4
- How to open file using lf in vertical split by default? HOT 2
- Allow setting a path in Lfcd HOT 2
- dynamic values for Width and Height HOT 4
- :Lf not opening window properly HOT 5
- Error detected while processing function <SNR>109_on_floaterm_close[27]..LfCallback: HOT 2
- <Esc> tries to open current file and causes undefined behavior HOT 1
- Not changing directory at the first try HOT 10
- In Windows. When opening (default 'l' and '<right>') a file from the lf window, it doesn't work. HOT 2
- Error detected while processing function <SNR>92_on_floaterm_close[27] .. LfCallback HOT 1
- How to change directory using Lf? HOT 1
- *Existing* and *NewTab* don't work as expected HOT 4
- Files opened with lf.vim not listed in file history
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 lf.vim.