Hello @all,
in my Geany ( V 1.35 , Win10, GTK 2.0 ) edit window a vertical green line over the code at column 46 is shown. I don´t know what this line is for and how i can delete it ?
Thanks for an answer !
Regards, Hlech65730
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/933
As a Geany user, so that I can invoke a web browser in the process of executing a build step, I would like to be able to reference the browser command setting.
I noticed in the Geany manual that if the user wants to configure a context action that uses a web browser (e.g., use the selected text (via '%s') as a parameter to firefox), they're encouraged to specify a command like this:
`firefox "http://www.php.net/%s"`
https://www.geany.org/manual/current/#context-actions
So, I got to thinking that Geany already has the user's browser of choice via the preferences mechanism. Why, then, would Geany need the user to specify a browser when it already "knows?"
In the callbacks.c we can see the call to `spawn_async` on the command line after the '%s' has been substituted.
https://github.com/geany/geany/blob/master/src/callbacks.c#L1492
Then I thought, what if instead of having the filetype specify the command to run, security concerns aside, could we include a pattern that could be replaced by the browser specified by the user?
Seeing how the browser command is accessed in utils.c it looks like this could be done by replacing the pattern with `tool_prefs.browser_cmd`.
https://github.com/geany/geany/blob/master/src/prefs.c#L681https://github.com/geany/geany/blob/master/src/utils.c#L85
The user could then specify a context action like this:
`%b "https://www.php.net/%s"`
(where `%b` is the pattern)
The additional stanza would look similar to what's in earlier in callbacks.c
https://github.com/geany/geany/blob/master/src/callbacks.c#L1490
Something like
```c
utils_str_replace_all(&command_line, "%b", tool_prefs.browser_cmd);
```
Similarly, it would be nice if we could do something similar with the user's preferred terminal
```c
utils_str_replace_all(&command_line, "%t", tool_prefs.term_cmd);
```
https://github.com/geany/geany/blob/master/src/prefs.c#L678
It would also be nice if we could do the same with build commands
https://github.com/geany/geany/blob/master/src/build.c#L726
As a use-case, it's handy for me to kick off a web browser to view something that results in HTML output. For example, I have a markdown build command that uses 'grep' to convert Markdown to HTML. From my filetypes.markdown:
```
FT_01_LB=_Convert to HTML
FT_01_CM=docker run -i --rm mbentley/grip - --export - < "%d/%f" > "%d/%e.html"
FT_01_WD=
```
Here, it would be nice if I could append ` && %b %d/%e.html &` to that command.
Please let me know if what I'm describing is viable and useful; if so, I can draft something and send along a PR.
Thanks!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2395
How real is this opportunity?
I know VS Code and Rider exist, but in the end I always go back to Geany
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/talks/issues/7
Because each shell has its own configuration file which can contain
different environment settings, it is useful to be able to specify
which shell Geany should use.
To limit the shells to only those we know that work with Geany, this
implementation only allows users to select from /bin/sh, /bin/bash and
/bin/zsh. More shells can be added in the future.
The affected places where we used hard-coded /bin/sh are:
1. Running commands (in VTE or without, with launch script or without)
2. Build commands
3. Print command
On macOS, the shell defaults to /bin/bash, on other systems to /bin/sh.
For more discussion see #2344
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2363
-- Commit Summary --
* Make the shell used by Geany to run various commands configurable
-- File Changes --
M data/geany.glade (44)
M src/build.c (17)
M src/keyfile.c (11)
M src/prefs.c (13)
M src/prefs.h (10)
M src/printing.c (5)
M src/utils.c (10)
M src/utils.h (2)
-- Patch Links --
https://github.com/geany/geany/pull/2363.patchhttps://github.com/geany/geany/pull/2363.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2363
Issue 1: The geany can't scroll the txt-file contents when long-click the 'Red-Point' key and 'middle-key-of-mouse' of the below the SPACE-KEY on the notebook (ThinkPad T420) keyboard.
Issue 2: When the geany open a large txt-file (8.0MB), it's very slow, and the CPU usage is 25%.
---------------------
version: Geany 1.36
OS: Windows 7 x64 with SP1
filetype: txt
Hardware: Lenovo ThinkPad T420 RW2, CPU: Intel i7-2620M (2 cores, 4 threads), Memory: 8GB, SSD: PLEXTOR PX-128M6M (128GB)
---------------------
The txt-file-contents cames from the URL 'https://news.163.com/19/1101/13/ESTA537L0001875O.html', copy the News contents and paste N-times until the file size has 8.0MB (8,397,400 bits, 43428 lines). Interval 3 empty lines before the next paste.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2387
when I split the window, "drag and drop" gets enabled in the new split window (the "fake" one) not honoring the "disable drag and drop" option.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2391
Hi,
in macos catalina the folders Desktop und Documents are normally locked by the operating system.
If i add geany to the "Full Disk Access" list, the access to these folders ist still not possible ...
Is macos catalina buggy or geany ?
;-)
thx
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2344
When I try to build (or test/run) golang code, I get errors like this:
```
Demo.go:10:8: cannot find package "aaa/bbb" in any of:
/usr/lib/go/src/aaa/bbb (from $GOROOT)
/home/name/go/src/aaa/bbb (from $GOPATH)
```
The problem is, that "/home/name/go" is the default $GOPATH, and I am using some other path. And, yes, my $GOPATH variable is set correctly:
```
[name@computer ~]$ echo $GOPATH
/home/name/some/path/go
```
So, it seems that Geany is not actually reading $GOPATH variable, but is just using the default path.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2390