Coder Social home page Coder Social logo

Changing default terminal about qgit HOT 8 CLOSED

bunyamintamar avatar bunyamintamar commented on September 1, 2024
Changing default terminal

from qgit.

Comments (8)

tibirna avatar tibirna commented on September 1, 2024 1

@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:
image
Just include %lineedit:title=defaultvalue% at the appropriate place in your command. The input-ed value will replace the %..% token.

from qgit.

tibirna avatar tibirna commented on September 1, 2024 1

from qgit.

tibirna avatar tibirna commented on September 1, 2024

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.

bunyamintamar avatar bunyamintamar commented on September 1, 2024

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.

SubOptimal avatar SubOptimal commented on September 1, 2024

@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}"

image

image

from qgit.

SubOptimal avatar SubOptimal commented on September 1, 2024

@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.

bunyamintamar avatar bunyamintamar commented on September 1, 2024

Thanks for the hint

from qgit.

bunyamintamar avatar bunyamintamar commented on September 1, 2024

Thanks for the hint

from qgit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.