Comments (4)
It's a bit unusual to set the EDITOR variable to an absolute path, lazygit doesn't support that. My recommendation would be to do something like this instead:
export PATH="$HOME/code/helix/target/release:$PATH"
export EDITOR=hx
This should work.
from lazygit.
@stefanhaller This does work but only works if i remove helix from homebrew. Should the EDITOR variable not support both relative and local pathings?
from lazygit.
@stefanhaller This does work but only works if i remove helix from homebrew.
I don't understand, can you explain more?
Should the EDITOR variable not support both relative and local pathings?
It is only possible to support arbitrary paths for the edit
command, but not for editAtLine
(which is used when you press e
in the staging view), because different editors have different command-line options for specifying the line number. That's why we decided to go with the editPreset approach that we are using now, which either defines all edit commands or none of them, since it would be confusing if pressing e
in the files panel would open helix, but in the staging view it would open vim.
from lazygit.
I currently have helix installed via homebrew as well as having the source and a custom compiled version which i added to PATH
as an ALIAS
. This ALIAS
seems to take pirority rather then items in PATH
.
I didnt realise Lazygit does this, but after checking it only works for me using the lazygit config EDITOR override as per your comment suggests.
I think using this config is the best approach for me here and agree this is most likley unusual configuration from my side.
from lazygit.
Related Issues (20)
- Option to always shorten author names in the commit view, regardless of the view width HOT 1
- Keybindings for Custom Command's Prompt menus
- Configurable commit tree highlight color
- unstaged panel can be maximized, but staged panel cannot. HOT 2
- option to manually adjust the horizontal padding HOT 10
- Merge conflict resolution: Add a loader while executing `git merge --continue` HOT 2
- Submit and Review PRs HOT 2
- Unable to unstage submodule changes when there are uncommitted changes within the submodule HOT 3
- Ability to see # of line changes in the diff window
- Different colors between lazygit and nvim plugin for lazygit HOT 1
- segmentation violation after committing deleted files, unable to reproduce so far HOT 1
- Ubuntu install instructions
- Clickable input tips
- Custom-Commands-Compendium should update due to api break change HOT 1
- Direnv support in lazygit
- Custom pager(delta) not support in single file path HOT 1
- Support regex or globs for MainBranches config HOT 2
- SIGSEGV github.com/jesseduffield/lazygit/pkg/commands/models.(*RemoteBranch).FullName(0xc0009afc20?)
- SelectedSubCommit is nil in the commits tab HOT 1
- Text background color turns blue when unstaging chunks HOT 2
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 lazygit.