Comments (5)
You should be able to do this already using a config like this:
customCommands:
- key: "q"
command: 'nvim --remote --send-keys "close"'
context: "global"
description: "Quit"
keybinding:
universal:
quit: <disabled>
Let me know if this works!
from lazygit.
But esc to return at top level will have to close lazygit, so can we permit a way to specify a custom command be triggered at that time?
from lazygit.
When quitOnTopLevelReturn
is true, you mean? Hm, I very much dislike that option, so it's off for me and I don't have this problem. Maybe you can just train yourself to hit q
instead of esc? 😄
If not, then yes, we'll have to add a new config key to support this. I was trying to avoid this if possible...
(For a moment I was considering changing the top-level esc
handler to send a q
keystroke down the event queue, so that it goes through the normal keybinding dispatching and the above solution would work, but that's probably too hacky.)
from lazygit.
I very much dislike that option
Yeah if it accidentally closes lazygit that's bad, but quitOnTopLevelReturn
would be convenient to hide lazygit, kinda like customCommandOnTopLevelReturn
. Maybe the usecase is too special, feel free to close this.
from lazygit.
closing as I'm now only use q to close
from lazygit.
Related Issues (20)
- "Increase the size of the context" '}' not working via shortcut HOT 3
- Not launching in Korean environment with default `language: 'auto'` config HOT 2
- Incorrect parsing of unicode escape codes HOT 1
- awesomewm terminal
- Allow customize Shell & ShellArg in config.yml HOT 2
- Manual and/or Go install commands for lazygit HOT 4
- expandedSidePanelWeight doesn't seem to work HOT 2
- "failed: fatal: detected dubious ownership in repository" when running lazygit on a newly initialized repository on a external drive
- Enable rebasing and patching of commits even when using GPG HOT 2
- Support multiple contexts for a custom command HOT 1
- Panel Selection Inversion HOT 3
- upload to apt repository HOT 1
- Immediately upon launching machine fully locks up HOT 1
- Auto Commit
- Configuration option to remove branch name default from commit message HOT 6
- Configurable yellow commit hash HOT 2
- Relative diff with some branch
- Possible to Fast Forward / Rebase / Merge to an upstream branch? HOT 4
- Conflict resolution panel supports displaying line numbers
- Don't show scrollbars when the entire content is visible HOT 4
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.