Comments (2)
Thanks again for the sug. The Diff widget's right-click menu now displays the selection and hunk staging actions before any of the whole-file staging actions.
from git-cola.
FWIW, this seems to do the job: context-menu.patch.txt
diff --git cola/widgets/diff.py cola/widgets/diff.py
index 40200b42..104c1c56 100644
--- cola/widgets/diff.py
+++ cola/widgets/diff.py
@@ -976,7 +976,7 @@ class DiffEditor(DiffTextEdit):
add_action = menu_actions.append
edit_actions_added = False
- if model.is_stageable() or model.is_unstageable():
+ if (model.is_stageable() or model.is_unstageable()) and not self.has_selection():
if (model.is_amend_mode() and s.staged) or not self.model.is_stageable():
self.stage_or_unstage.setText(N_('Unstage'))
self.stage_or_unstage.setIcon(icons.remove())
from git-cola.
Related Issues (20)
- The title bar (or something else) should show the name of the file currently selected HOT 1
- Wrong name for toolbar tool HOT 5
- How does cola start on Windows? HOT 3
- the commit button randomly becomes blank HOT 6
- sometimes not all files are staged or reverted HOT 5
- Version 4.5.0 Wont start after update HOT 6
- Flatpak install: cannot access pre-commit hooks or launch editor HOT 3
- Git-cola crashes when no commit.template is defined HOT 1
- `git-sequence-editor` invoked with wrong path on Windows HOT 10
- git-cola died of signal 11 HOT 9
- Mac Cmd+M (minimize window) is ignored by git-cola and has different action HOT 1
- Commit message input box pre-filled at startup HOT 2
- Ignoring a file locally fails if within a worktree HOT 2
- Programmatically change the UI theme? HOT 1
- please look into fixing the "flashbang" effect when the main window spawns (windows) HOT 2
- Feature request: custom keybindings(?) HOT 1
- Docs: Suggestion to add shell script as a way to open git-cola on mac HOT 4
- Feature: faster and easier commit hash copying in DAG HOT 7
- Feature request: Go up one directory to clone when in a repository HOT 1
- bug: light/dark them dynamic change causes some parts to do not reflect the theme
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 git-cola.