i’m using Version 3.2.6 (pre-release #230619)
Is there any difference between official release?
Side question :
How can I activate auto-completion for gmic commands?
On my PC running Linux Mint if i do : gmic h r <TAB> it will give me a list of all the G’mic commands beginning with r, like resize, rotate, etc., which is very convenient to search for an unknown command.
But that’s not the case on my ArchLinux Arm, it doesn’t give me anything (zsh or bash)…
Probably a config thing but I don’t know where to look
Anyways, can there be commands to return GUI header codes, CLI header code, CLI codes of command as a image? I’m thinking of converting my Python code which process clipboard of G’MIC codes into G’MIC code which calls Python.
Yes, probably (see Commits · GreycLab/gmic · GitHub to get the list of changes since that date). Version 3.2.6 is a very minor release, so with only a few changes compared to previous version 3.2.5.
Auto-completion in bash is managed by the file gmic-3.2.6/resources/gmic_bashcompletion.sh provided in the gmic_3.2.6.tar.gz archive.
This is a simple bash script, so you can first try:
$ . ./gmic_bashcompletion.sh
Then, if everything works, you can “install” it by moving/renaming this file as /usr/share/bash-completion/completions/gmic, to enable autocompletion of the gmic command by default.
Auto-completion is a Bourne Again Shell (aka bash) facility, native to Linux environments. See How to create a Bash Completion Script. A native Windows cmd.exe session won’t know what to do with this script because the facility ultimately needs complete, a bash shell built-in command. However, there is the Linux Subsystem for Windows. This article suggests a way for Windows users to have a bash shell: How to install Bash on Windows 11. You would also install gmic separately in your Windows Linux subsystem.