[Geany-Users] Expand/collapse if/fi, for/done, while/done in Shellscripts like for functions

2018-09-13 Thread Mikolaj Ch
In https://www.geany.org/Support/PluginWishlist there is:

   - Expand/collapse if/fi, for/done, while/done in Shellscripts like for
   functions. - already possible by adding own snippets, check the manual
    for details.


but it is not clear from the manual how to do it.
>From help snippets are about autocompletion so I have not idea how to use it to
do expand/collapse for if/fi, for/done, while/done in Shellscripts ?

BR,
 Mikowhy
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Expand/collapse if/fi, for/done, while/done in Shellscripts like for functions

2018-09-13 Thread Lex Trotman
On Fri, 14 Sep 2018 at 05:41, Mikolaj Ch  wrote:
>
> In https://www.geany.org/Support/PluginWishlist there is:
>
> Expand/collapse if/fi, for/done, while/done in Shellscripts like for 
> functions. - already possible by adding own snippets, check the manual for 
> details.
>
>
> but it is not clear from the manual how to do it.
> From help snippets are about autocompletion so I have not idea how to use it 
> to do expand/collapse for if/fi, for/done, while/done in Shellscripts ?
>

Not sure what the person who made the comment in the wishlist was
thinking of.  AFAICT the bash lexer folds on comments, {} and here
docs.

Cheers
Lex
> BR,
>  Mikowhy
> ___
> Users mailing list
> Users@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] ? Capturing context_action's output

2018-09-13 Thread e2qb2a44f
Hi,

Lex Trotman:
> Context actions do not collect the results of the subprocess

But if I have an xterm-like program (xfce4-terminal, under Xubuntu) then it can 
launch bash, bash can run the
context action, and leave the window open, and show me the result.

I found that if I set the context action to

xfce4-terminal --tab --working-directory=/home/xxx/yyy/zzz -x bash -vc 'echo 
"%p" && grep -PIr "^using +%s +=";
echo "--$?--" && read -sN1'

then the context action works and -- in my xfce4-terminal, in the last (new) 
tab -- I can inspect the results.
(The action is, given a word zzz, to grep for "using zzz ="-like texts in 
directory (and below) /home/xxx/yyy/zzz.)

But:

- The context action does not know about "%p". I wish it would. Currently the 
action works only for this project
(project's base dir is hardcoded).

- I have to leave Geany and switch to the xfce4-terminal window. (It does not 
even brings to front currently.)
No integration. (In the Messages pane I could click on a line and Geany would 
open the file and seek to the line
and highlight the word..)


> build commands show their output in the compiler window

But:

- [The build commands] do not know about (recenty, and if I am correct) the %s 
wildcard. (Perhaps with a minimal
effort, it could recognize it.)


-- 


___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] ? Capturing context_action's output

2018-09-13 Thread Lex Trotman
On Fri, 14 Sep 2018 at 09:47,  wrote:
>
> Hi,
>
> Lex Trotman:
> > Context actions do not collect the results of the subprocess
>
> But if I have an xterm-like program (xfce4-terminal, under Xubuntu) then it 
> can launch bash, bash can run the
> context action, and leave the window open, and show me the result.
>
> I found that if I set the context action to
>
> xfce4-terminal --tab --working-directory=/home/xxx/yyy/zzz -x bash -vc 'echo 
> "%p" && grep -PIr "^using +%s +=";
> echo "--$?--" && read -sN1'
>
> then the context action works and -- in my xfce4-terminal, in the last (new) 
> tab -- I can inspect the results.
> (The action is, given a word zzz, to grep for "using zzz ="-like texts in 
> directory (and below) /home/xxx/yyy/zzz.)
>

Yes, the command can do anything.

> But:
>
> - The context action does not know about "%p". I wish it would. Currently the 
> action works only for this project
> (project's base dir is hardcoded).

Its possible, pull requests are welcome.

>
> - I have to leave Geany and switch to the xfce4-terminal window. (It does not 
> even brings to front currently.)
> No integration. (In the Messages pane I could click on a line and Geany would 
> open the file and seek to the line
> and highlight the word..)
>
>
> > build commands show their output in the compiler window
>
> But:
>
> - [The build commands] do not know about (recenty, and if I am correct) the 
> %s wildcard. (Perhaps with a minimal
> effort, it could recognize it.)
>

Selection is not really relevant to the main use-case of build
commands, nonetheless a pull request may be accepted.

To reiterate my response above:

- context actions are intended to run commands that are not monitored by Geany

- build commands are intended to run commands that are monitored and
parsed for compile errors and shown in the compile tab or to execute
the built program and show its output in the built-in terminal or a
separate terminal.

- custom commands are intended to be fed the selection via stdin and
the output monitored and used to replace the selection

Your use-case is a command that is run and its output monitored and
shown in the messages window, which is none of the above.

So as I said Geany does not currently support it.  You could create an
enhancement request, but I think it already exists.

Cheers
Lex
>
> --
>
>
> ___
> Users mailing list
> Users@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Expand/collapse if/fi, for/done, while/done in Shellscripts like for functions

2018-09-13 Thread Mikolaj Ch
On Fri, Sep 14, 2018 at 1:04 AM Lex Trotman  wrote:

> On Fri, 14 Sep 2018 at 05:41, Mikolaj Ch  wrote:
> >
> > In https://www.geany.org/Support/PluginWishlist there is:
> >
> > Expand/collapse if/fi, for/done, while/done in Shellscripts like for
> functions. - already possible by adding own snippets, check the manual for
> details.
> >
> >
> > but it is not clear from the manual how to do it.
> > From help snippets are about autocompletion so I have not idea how to
> use it to do expand/collapse for if/fi, for/done, while/done in
> Shellscripts ?
> >
>
> Not sure what the person who made the comment in the wishlist was
> thinking of.

For me it's quilte clear, and I want the same: to fold if/fi for/done
while/done in shellscripts
The answer to this wish is not clear "already possible by adding own
snippets, check the manual for details."

AFAICT the bash lexer folds on comments, {} and here.


docs.
>
> Cheers
> Lex
> > BR,
> >  Mikowhy
> > ___
> > Users mailing list
> > Users@lists.geany.org
> > https://lists.geany.org/cgi-bin/mailman/listinfo/users
> ___
> Users mailing list
> Users@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Expand/collapse if/fi, for/done, while/done in Shellscripts like for functions

2018-09-13 Thread Lex Trotman
On Fri, 14 Sep 2018 at 12:25, Mikolaj Ch  wrote:
>
>
>
> On Fri, Sep 14, 2018 at 1:04 AM Lex Trotman  wrote:
>>
>> On Fri, 14 Sep 2018 at 05:41, Mikolaj Ch  wrote:
>> >
>> > In https://www.geany.org/Support/PluginWishlist there is:
>> >
>> > Expand/collapse if/fi, for/done, while/done in Shellscripts like for 
>> > functions. - already possible by adding own snippets, check the manual for 
>> > details.
>> >
>> >
>> > but it is not clear from the manual how to do it.
>> > From help snippets are about autocompletion so I have not idea how to use 
>> > it to do expand/collapse for if/fi, for/done, while/done in Shellscripts ?
>> >
>>
>> Not sure what the person who made the comment in the wishlist was
>> thinking of.
>
> For me it's quilte clear, and I want the same: to fold if/fi for/done 
> while/done in shellscripts

Folding is provided by the Scintilla (scintilla.org) editing widget
Geany uses, you could raise a feature request on that projects issues.

> The answer to this wish is not clear "already possible by adding own 
> snippets, check the manual for details."

Yes, thats what I said was not clear.

>
>> AFAICT the bash lexer folds on comments, {} and here.
>
>
>> docs.
>>
>> Cheers
>> Lex
>> > BR,
>> >  Mikowhy
>> > ___
>> > Users mailing list
>> > Users@lists.geany.org
>> > https://lists.geany.org/cgi-bin/mailman/listinfo/users
>> ___
>> Users mailing list
>> Users@lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
> ___
> Users mailing list
> Users@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Re: Customizing Geany's appearance using GTK+3 CSS

2018-09-13 Thread Jérôme Andanson via Users
Le 11/09/2018 à 09:34, Lex Trotman a écrit :
> On Tue, 11 Sep 2018 at 16:18, Jérôme Andanson via Users
>  wrote:
>> Hi all !
>>
>> I want to change some colors in message windows, previously with Geany
>> 1.31 (or 1.32 ?) on Mint 18, I succeeded by following the documentation
>> about geany.css [1].
>>
>> But for now with Geany 1.32 (GTK+3.22.26) on Mint 19, change to this
>> file does not work anymore, any idea ?
>>
>> I have in .config/geany/geany.css :
>>
>> /* compiler message colors */
>> #geany-compiler-error {
>> color: #ff;
>> }
>> #geany-compiler-context {
>> color: #ff;
>> }
>> #geany-compiler-message {
>> color: #4C73D4;
>> }
>>
>> But colors are still default one.
> A file like the above works for me Geany 1.34 (git version) but I'm
> still on Mint 18 so maybe its the GTK version.
Thanks for testing !

I also try with .config/gtk-3.0/gtk.css but geany style don't apply
anyway, if I test a global customisation it apply ! So this file was
parsed. I Thinks problem is with geany elements ID, I tried gtk
debuger[1] with no chance.

Maybe @ban can test with a higher gtk version than yours

[1] $GTK_DEBUG=interactive geany

>
>> Thanks a lot for this really good IDE :)
>>
>> Jerome
>>
>>
>> [1]
>> https://www.geany.org/manual/current/#customizing-geany-s-appearance-using-gtk-3-css
>>

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] Re: Customizing Geany's appearance using GTK+3 CSS

2018-09-13 Thread Lex Trotman
On Fri, 14 Sep 2018 at 15:42, Jérôme Andanson via Users
 wrote:
>
> Le 11/09/2018 à 09:34, Lex Trotman a écrit :
> > On Tue, 11 Sep 2018 at 16:18, Jérôme Andanson via Users
> >  wrote:
> >> Hi all !
> >>
> >> I want to change some colors in message windows, previously with Geany
> >> 1.31 (or 1.32 ?) on Mint 18, I succeeded by following the documentation
> >> about geany.css [1].
> >>
> >> But for now with Geany 1.32 (GTK+3.22.26) on Mint 19, change to this
> >> file does not work anymore, any idea ?

Actually on checking, the pull request was not comitted until Jan 2018
between 1.32 and 1.33, so its only in 1.33 release.  I'm not sure how
it used to work for you, did you have your own build with the patch
included?  Anyhow if you can get 1.33 it should work.

Cheers
Lex
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users