Repository navigation
git add -u by default for "a" hotkey, LMB to add untracked #6115
|
As of at least version 0.66 my workaround for the "a" keybinding to do a I have this in my config.yml customCommands:
- key: "a"
context: "files"
command: "git add -u"
description: "Add all tracked files"
loadingText: "Adding tracked files"My specific workflow is this: by default I would like lazygit to not track untracked files when pressing "a". Yes, I do use gitignore however the temp files I end up generating during development often have similar patterns as the files I do want to track. This isn't a case of just needing to blanket ignoring *.o files in .gitignore, I have a lot of WIP that I don't want to accidentally commit. I also know about Can the double LMB click on a file or directory to start tracking it be brought back again? Or is there a non-workaround way to set this behavior in config for the "a" key without a custom command? |
Replies: 1 comment 1 reply
|
It is true that double-click has changed in 0.66 to focus the main view rather than stage or unstage a file as before. There was no real strong reason for making that change, except that double-click should generally do the same as pressing But I don't understand what that has to do with your
No, there isn't currently. I could consider adding a config that lets you choose whether |
It is true that double-click has changed in 0.66 to focus the main view rather than stage or unstage a file as before. There was no real strong reason for making that change, except that double-click should generally do the same as pressing
enter, andenterhas previously entered the staging panel; now that there is no staging panel any more,enterfocuses the main view (which is the equivalent action), and I changed double-click to do the same for consistency.But I don't understand what that has to do with your
add -uworkaround. To stage or unstage a file (including an untracked one), you pressspaceon it; this hasn't changed in 0.66. You can also press space on the root of the workin…