Comments (8)
@SubOptimal @bunyamintamar the 'Action' feature is not designed to be a full fledged shell interpreter. It is just meant to create simple scripts that are ran in a detached shell and then the output displayed in a text widget, which is not a terminal (it only reuses the desktop's standard terminal icon in the window title bar).
@bunyamintamar as described, the intention of 'Action' is not to provide a terminal, but you can actually start one by simply including it in an 'Action' script. You can choose whichever you want and I guess you could pass commands to it as indicated in that terminal's manual.
@SubOptimal to allow for edit boxes, follow the tip printed at the bottom of the 'Actions' dialog:
Just include %lineedit:title=defaultvalue% at the appropriate place in your command. The input-ed value will replace the %..% token.
from qgit.
from qgit.
I'm not sure I understand. Please indicate which terminal you are refering to? Which part of the QGit UI should be replaced with the gnome terminal?
from qgit.
QGit's default terminal (for user script at Actions menu) does not allow user input. I think it would be nice to be able to use an external terminal.
from qgit.
@tibirna Following as demonstration
Assume you define an action as
read value
echo $value
The execution will stuck, as the QGit action window does not allow any user input.
@bunyamintamar A possible solution would be to use a GUI input dialog.
value=$(zenity --entry)
echo "the value is: ${value}"
from qgit.
@tibirna Thanks for the hint. I have not taken this into account. 🤦
To have a similar behavior like my zenity example. The following action code work as expected.
value="%lineedit:enter value=defaults%"
echo "the value is: ${value}"
Is there some other documentation about those features than inputdialog.h#L9
from qgit.
Thanks for the hint
from qgit.
Thanks for the hint
from qgit.
Related Issues (20)
- qgit-2.9 deadlocks with 100% cpu usage when selecting a commit with many files changed HOT 1
- What is the minimum version QT framework in the project. HOT 2
- Show commit hash in Rev list HOT 2
- QGit release 2.10? — Please please :) HOT 6
- Let users customize diff colors HOT 1
- QGit download binaries HOT 1
- Annotate not working in linux kernel HOT 32
- Ctrl+ to increase font does not work on Mint 20.3 HOT 3
- Crash on repository with commit changing many files HOT 1
- Impossible to remove changed or new files from the index using the "Commit" dialog
- Selecting commit hash using double or triple mouse click works unpredictably HOT 1
- Commit list is not readable with dark colors schema
- Commit graph color doesn't follow color scheme changes
- Possible to restore Qt4 compatibility? HOT 3
- [macOS] App icon is broken on Sonoma / arm64 HOT 6
- Add possibility to highlight all search results at once HOT 3
- Incorrect file-to-diff jump when the diff contains patch files
- Feature wish: Select branch to be viewed HOT 2
- src/settingsimpl.cpp:108: suspicious for loop ? HOT 1
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 qgit.