teddydd / kakoune-lf Goto Github PK
View Code? Open in Web Editor NEWLF integration for Kakoune
License: ISC License
LF integration for Kakoune
License: ISC License
Calling :lf
should open file browser, calling it second time should close it instead of spawning new instance.
Pretty self-descriptive;
The command should be on one line, because, the terminal command starts the user configured default shell, which, among others can be fish, which doesn't follow the POSIX protocol, and thus fails to interpret the escaped newline.
Just so you know, the %{ ... }
is basically just a form of string in kakoune, and doesn't escape anything (except for }, when { is not found somewhere earlier)
It can be sent with lf-send-command, so it seems unnecessary having to add it to lfrc
This isn't strictly needed, but I had a very hard time getting it to work with both tmux, and x11 terminal.
hatch-terminal
is only supposed to expose the KAK_CLIENT
, and KAK_SESSION
variables, the other ones in lowercase are just a side-effect of the terminal being directly spawned from the kak process, inheriting its environment.
On the tmux side, this is different, as spawning a pane is done through the tmux command, which communicates with the server through a pipe, and drops its environment.
The KAK_(CLIENT|SESSION)
variables however are deliberately made part of the hatched pane's environment, so they're available.
Switching the configuration is mostly possible, but the hook has to be removed, so that it can be redefined with the uppercase variants, but that is not possible without giving it a group.
Edit: Also it'd nice to change the way lf is configured when the connection is made
commands to change lf's directory to Kakoune pwd and other way around
I think file
utility could be used for this task.
We have to plug it into kak-edit
command (lf)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.