I always have been looking for a text editor to write documentation, with
text folding
keyword highlighting
clickable access to web addresses and other files
like I have always enjoyed with Geany (Python coding).
To my embarrassment and shame, I didn't realize that Geany itself was all
that I ever needed.
See attached screen fotos .....
On Tue, May 21, 2019 at 5:00 AM <users-request(a)lists.geany.org> wrote:
> Send Users mailing list submissions to
> users(a)lists.geany.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request(a)lists.geany.org
>
> You can reach the person managing the list at
> users-owner(a)lists.geany.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
> 1. Request for your screenshots (Enrico Tröger)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 20 May 2019 23:38:38 +0200
> From: Enrico Tröger <enrico.troeger(a)uvena.de>
> To: users(a)lists.geany.org
> Subject: [Geany-Users] Request for your screenshots
> Message-ID: <c27cac2d-c816-6a55-d14c-2d1f12c29de8(a)uvena.de>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> we would like to refresh the quite old screenshots on the website and
> therefore kindly ask for your support:
>
> show us your screenshots with your fancy customizations, demonstrating a
> feature you like, how Geany integrates in your desktop environment, your
> special use of Geany or just whatever you like.
>
> Extra kudos go to providing a short explanatory text of what we see on
> the screenshot.
>
> There are not much requirements on the image except that it should be a
> PNG or at least JPG and the bigger the better (with a absolute minimum
> of 600px in width).
>
>
> Thank you,
> Enrico
>
> --
> Get my GPG key from https://www.uvena.de/pub.asc
>
>
Hi,
we would like to refresh the quite old screenshots on the website and
therefore kindly ask for your support:
show us your screenshots with your fancy customizations, demonstrating a
feature you like, how Geany integrates in your desktop environment, your
special use of Geany or just whatever you like.
Extra kudos go to providing a short explanatory text of what we see on
the screenshot.
There are not much requirements on the image except that it should be a
PNG or at least JPG and the bigger the better (with a absolute minimum
of 600px in width).
Thank you,
Enrico
--
Get my GPG key from https://www.uvena.de/pub.asc
I would like the conversion of leading tabs to spaces for Python files and of leading spaces to tabs (but more importantly NOT vice versa) for Php files. I am sure many of you have addressed this issue already and know how best to handle it in Geany. I don't see an obviously good way to handle it. I can only guess a special configuration file might do it, and call me lazy.
Python (*.py):
The custom and better way in Python is leading spaces not leading tabs. If spaces and tabs are mixed, the visual appearance is not indicative of actual block nesting. Per PEP 8, Python 3 forbids mixing (unlike Python 2) and prefers spaces, 4 for each indent level: PEP 8 -- Style Guide for Python Code.
|
|
|
| | |
|
|
|
| |
PEP 8 -- Style Guide for Python Code
The official home of the Python Programming Language
|
|
|
Php (*.php):Wordpress recommends leading tabs: PHP Coding Standards | Wpcs Handbook Handbook | WordPress Developer Resources.
|
|
| |
PHP Coding Standards | Wpcs Handbook Handbook | WordPress Developer Reso...
|
|
|
I see this: Preferences -> Editor -> Indentation -> 'Detect type from file'. It is not working for me. I know, barely, that one can create a custom Geany configuration file. Can one specify the correct behavior by file extension, and is that a good or best way?
I notice on the Geany Plugin Wishlist this item (stale as it is):
Feature found in Slickedit: Tabs to spaces option should be file extension dependent (i.e. you might want it most of the time but not e.g. for the .mak file extension). (Tuesday, September 29, 2009)
For anyone who already knows, what is the state of affairs on this desirable functionality? What good is the 'Detect type from file' setting? My experiments have been fruitless.
Douglas Morris
My Geany Configuration
References:
'''https://www.geany.org/'''
'''http://go-lang.cat-v.org/text-editors/geany/'''
Problem:
Python code
with too much distracting documentation ...
Documentation
difficult to navigate between sections and references ...
with blocks of code that are not easily executable ...
Solution:
An editor that manages both text and code files:
with code folding based on indentation (Python type)
right click option, to open file pathnames, both relative and
absolute, directly in editor
right click on htttp://web_address, to open address in a given web
browser
syntax highlighting for Python files - *.py
keyword highlighting for document files - *.txt, *.hlp, *.gny
Note:
I selected the *.gny extension to emphasize that a given text file is
best reviewed
with a custom configured Geany, as described here...
I selected the *.hlp extension for the documentation retrieved from
Python source code by:
>>> help(module_name)
Following describes my custom configuration for Geany ....
Done with support from Linux Mint, pylint3, dolphin and chromium-browser.
twallace51(a)gmail.com
To configure Geany manually:
Install and open Geany....
Click on MenuBar > Edit > Preferences >
and edit following:
Interface > Message Window >
click [x] Right # tall is easier to read than wide, on a large
screen
Editor > Indentation >
width 2 # my personal preference rather than default 4
type spaces
Files > Saving Files >
[x] strip trailing spaces and tabs # to help comply with pylint3
[x] replace tab with space
Tools > Tool Paths >
set Browser to chromium-browser # or Firefox if
prefer
Tools > Commands >
set Context Action to chromium-browser %s
#Now available:
# click-drag on a valid web address -> selects address
# right clicking on address -> opens a popup menu
# clicking Context Action -> opens address in given web
browser
Also Note:
# right clicking on the pathname of a file -> opens the popup menu
# clicking on Open Selected -> opens the file in
Geany
Keybindings > # Note: many of common keybindings are included by
defualt,
#eg for Run, Find, Find Next, Select All, Cut, Copy, Paste, etc
Editor
Delete current line(s) Alt-D
Format
Increase indent Alt-I # note that the Tab key is
equivalent
Decrease indent Shift-ISO_Left_Tab
Search
Replace Alt-R # easier to reach with one
hand, but most editors use default Ctrl-H
Document
Fold all Alt-C
Unfold all Alt-X
GoTo
Go to line Alt-G
Click on MenuBar > Edit > Plugin Preferences >
FileBrowser
dolphin "%d" # I like the split screen option in dolphin
TreeBrowser
dolphin "%d"
Click on Menu > Build > Set Build Commands >
Replace all defaults with following:
Under Doc commands >
Pylint pylint3 --rcfile=~/mylintrc "%f" # assumes
default pylintrc modified and saved as ~/mylintrc
Under Execute commands >
Python3.7 python3.7 "%f"
Click on Menu > Tools > Plugin Manager >
First, install package "geany-plugins" with Synaptic or sudo apt-get.
Then of the many available plugins, enable the most useful:
SplitWindow
AutoMark
Click on File > New (with template) >
Note:
To see your custom templates in Geany File menu, put your templates in
~/.config/geany/templates/files
To put your custom templates ~above~ the defaults in the template
list,
use an initial underline character in your template`s name, for
example:
_pure_python.py
_PyQt5.py
To enable folding and simple syntax coloring for *.txt, *.hlp and *.gny
files
======================================================================
Easy Option:
======================================================================
Click on Menu > Tools > Configuration Files > filetype_extensions.conf
Look for
Python=*.py;*.pyw;SConstruct;SConscript;wscript;
replace with
Python=*.py;*.pyw;SConstruct;SConscript;wscript;*.txt;*.hlp;*.gny
======================================================================
Better Option: # based on
http://go-lang.cat-v.org/text-editors/geany/
======================================================================
On bash command line:
Copy Geany global config file to local configuration directory - so
any changes are now local:
cp -v /usr/share/geany/filetype_extensions.conf
~/.config/geany
Copy and rename following:
cp -v /usr/share/geany/filedefs/filetypes.python
~/.config/geany/filedefs/filetypes.Txt.conf
Note: Once these files have been copied, they can be updated later
under
Geany > MenuBar > Tools > Configuration Files > ...
Add following to ~/.config/geany/filetype_extensions.conf:
Txt=*.txt;*.hlp;*.gny # between Tcl=... and Txt2tags=...
Edit following in ~/.config/geany/filedefs/filetypes.Txt.conf:
Comment out keywords list, so will not be highlighted
[keywords]
#primary=....
#identifiers=....
.
or replace with your own keywords, eg my favorites:
primary = Note Warning Syntax Example Examples Description Goal
References Usage Instalation Configuration Details Classes
Enable python style folding and highligting
[settings]
extension=txt,hlp,gny
lexer_filetype=Python
Remove any build commands found here:
[build-menu]
FT_00_LB=
FT_00_CM=
FT_00_WD=
FT_02_LB=
FT_02_CM=
FT_02_WD=
EX_00_LB=
EX_00_CM=
EX_00_WD=
--
Tim Wallace twallace51(a)gmail.com
Cochabamba, Bolivia
Lex,
Thanks for the clarification.
Sorry about the missing info.
The "new" version is Geany 1.33 and, it is, as you suspected, linked
with gtk-3,
while the "old" version is Geany 1.29, linked with gtk-2.
The OS is Debian "buster" and "stretch", respectively.
I absolutely agree with your rant about the popular "kiddy phone" look.
Could one simply copy the .css file from the 1.29 version to the 1.33
version to restore the old version's layout?
Any suggestions appreciated.
- brent
users-request(a)lists.geany.org wrote:
> Send Users mailing list submissions to
> users(a)lists.geany.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-request(a)lists.geany.org
>
> You can reach the person managing the list at
> users-owner(a)lists.geany.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
> 1. Smaller fonts in file tabs? (Brent Roman)
> 2. Re: Smaller fonts in file tabs? (Lex Trotman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 1 May 2019 19:27:42 -0700
> From: Brent Roman <genosensor(a)gmail.com>
> To: users(a)lists.geany.org
> Subject: [Geany-Users] Smaller fonts in file tabs?
> Message-ID: <024f7f08-0c8b-201d-8bf4-4d79a642ee7b(a)gmail.com>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hi,
>
> The 1.2 series had much smaller fonts by default for labels that appear
> above the editor and file selector panes and to the left of the messages
> area than the 1.3 series does.
>
> Is there any way to revert to the older, more compact layout?
>
> Something I can do in geany.css, perhaps?
>
> Thanks!
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 2 May 2019 13:05:47 +1000
> From: Lex Trotman <elextr(a)gmail.com>
> To: Geany general discussion list <users(a)lists.geany.org>
> Subject: Re: [Geany-Users] Smaller fonts in file tabs?
> Message-ID:
> <CAKhWKDMbMAKKomQd4e5G=4Zs84qD+e5My0XZDOP+BLx58MTa+A(a)mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On Thu, 2 May 2019 at 12:28, Brent Roman <genosensor(a)gmail.com> wrote:
>> Hi,
>>
>> The 1.2 series had much smaller fonts by default for labels that appear
>> above the editor and file selector panes and to the left of the messages
>> area than the 1.3 series does.
> There are no 1.2 and 1.3 series, its 1.<an increasing number>, the
> maintainer doesn't believe in Semver.
>
> You might mean 1.<20s> vs 1.<30s> but that doesn't control it, all can
> be built with GTK2 or GTK3.
>
> You don't say what OS you use but more likely it has switched to
> providing a GTK3 build of Geany recently, but its GTK3 themes are
> designed for kiddy phones, not desktops [end rant].
>
>> Is there any way to revert to the older, more compact layout?
>>
>> Something I can do in geany.css, perhaps?
> You havn't given the version of Geany, or the version of GTK, for GTK3
> its geany.css as you suspected and it "should work".
>
> Cheers
> Lex
>
>> Thanks!
>>
>> _______________________________________________
>> Users mailing list
>> Users(a)lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Users mailing list
> Users(a)lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------
>
> End of Users Digest, Vol 162, Issue 1
> *************************************
Hi,
The 1.2 series had much smaller fonts by default for labels that appear
above the editor and file selector panes and to the left of the messages
area than the 1.3 series does.
Is there any way to revert to the older, more compact layout?
Something I can do in geany.css, perhaps?
Thanks!