Hello everybody,
I've been happily using Geany for a little while now, coding mostly in
Python. I have a couple questions:
1. For a dark color scheme, eg Vibrant Ink, how do i get the active
line to not be highlighted. White text + white highlighting =
invisible text on the line I'm trying to edit. Arrgh!
2. Any debugger advice for python? I am finding winpdb is pretty slow
and actually crashes on my machine a fair amount.
I'm on a windows 7 64 bit installation.
Thanks!
--
A musician must make music, an artist must paint, a poet must write,
if he is to be ultimately at peace with himself.
- Abraham Maslow
Hello Geany users,
I have just installed Geany on Ubuntu and when I open the preferences I
have tab General, Interface, ..., Various but after Various* I do not have
the Terminal tab (see image below)*, which is what I wanted to access to
paste and copy commands to the terminal to execute small pieces of code.
Have I made a mistake in installing geany (i used on the command line: sudo
apt-get install geany)
Thank you very much for help.
Best regards,
marco
[image: Inline image 1]
manual says geany is sensitive to some styles in gtkrc that a user can
customize, example is given for changing font, and I have also managed
to change bg color in a limited way
I wonder how I could find full list of properties that are susceptible
to customization in this way
for instance, can background of document tabs be styled? how about
background of highlighted toolbar buttons or dropdowns such as recent
file list from the toolbar?
thanks for any guidance
I installed geany and geanylua plugin for my ubuntu 12.04 64 bit
system from the repository, version seems to be 0.22
most scripts I write work fine but if I try to use geany.find
function, geany crashes
for instance, just the single line script
x, y= geany.find ("ab",1,4,{"matchcase"})
is a crash on a file with many lines of text in utf-8 encoding,
regardless of whether "ab" is present in the specified range
just wondering if this is a problem with how I am using the function,
I would appreciate some examples of scripts that use find that work on
geany 0.22
thanks
Hello All,
>
> Is there a way to highlight the bracket so that one can easily see the
> beginning and ending of a block of code? Something similar to the attached
> screenshots
>
> Like this:
> [image: Inline image 1]
>
> or this:
> [image: Inline image 2]
>
> Thanks,
>
> Tri
>
Hi dear plugins developers,
Now Geany and Geany-Plugins 1.23 are out, I merged support for GTK3 in
Geany, and added initial support for building Geany-Plugins against a
GTK3 build of Geany.
As you might know, GTK3 has some incompatibilities with GTK2, and GTK3
code often requires some adjustments to work with GTK3. Since it is not
possible to load both GTK2 and GTK3 in the same program, a GTK3 build of
Geany requires plugins also built against GTK3.
So, I'd like to ask you to consider adjusting your plugins so they build
with GTK3 too. Note that *we don't mean to remove GTK2 support*, so
adjusting your plugin should make it work with *both* GTK2 and GTK3.
The plugins that currently don't build against GTK3 are:
* Addons
* Debugger
* DevHelp
* GeanyDoc
* GeanyInsertNum
* GeanyLaTeX
* GeanyLipsum
* GeanyLua
* GeanyMacro
* GeanyMiniScript
* GeanyNumberedBookmarks
* GeanyPrj
* GeanyVC
* GProject
* Markdown
* MultiTerm
* Pretty Printer
* Scope
* Spellcheck
* TreeBrowser
There are also some plugins that do build against GTK3, but that may
require adjustments to render perfectly[1]:
* CodeNav
* GeanyExtraSel
* GeanySendmail
* GeanyPG
* GeniusPaste
* ShiftColumn
* Tableconvert
* Updatechecker
* XMLSnippets
If you need any assistance to add GTK3 support for your plugin or have
any question about it, feel free to contact me.
Regards,
Colomban
[1] GTK3 behaves a little differently than GTK2 on some matters,
particularly with some widget packing. It is however totally possible
(and not hard) to get packing rules that work exactly the same on both
GTK2 and GTK3.
According to the Geany manual:
The system path is the data subfolder of the installation path on Windows.
The user configuration directory might vary, but on Windows XP it's:
C:\Documents and Settings\UserName\Application Data\geany
A Euphoria Programmer provided this information while commenting on program
I wrote which
installs versions of several files which enable Geany to support the
Euphoria Programming Language:
Some updated info for Windows installs:
>
> In my version of Windows, the actual path to the directory created by
> geany is
> C:\Users\Owner\AppData\Roaming\geany
> *That path doesn't exist until geany is run once. You should tell users
> to run geany once so it can write those default files/dirs.* This way you
> can confirm that whatever path they provide for installing these forms is
> correct.
>
> The path to geany config files needs to be gotten from getenv("APPDATA"),
> instead of getenv("HOME").
> APPDATA can be used from Windows XP on up. On my Windows XP box, it returns
> C:\Documents and Settings\user\Application Data
> On Windows 7 it returns
> C:\The system path is the data subfolder of the installation path on
> Windows.
> The user configuration directory might vary, but on Windows XP it's:
> C:\Documents and Settings\UserName\Application
> Data\geanyUsers\Owner\AppData\Roaming\geany
> The Windows file path code need only be this:
> constant GEANY_DIR = getenv( "APPDATA" ) & SLASH & "geany"
This is my latest installation program, written in Euphoria. The code is
simple and intuitive, so
I think most programmers will be able to follow it without any problems:
------ EuGeany 1.3b-- -- usage eui EuGeany.ex---- Installs Geany
configuration files which-- provide support for the Euphoria
Programming Language-- Existing files are backed up with an extension
suffix-- which may be defined by the user--
-- For more information read comments in the respective files,
-- especially, filetypes.Euphoria.conf.----
include std/console.einclude std/filesys.einclude std/graphics.e
constant BACKUP_SUFFIX = "~"-- constant BACKUP_SUFFIX = ".BAK"
sequence GEANY_USER_CONFIG = getenv( "HOME") & SLASH & ".config" &
SLASH & "geany"
ifdef WINDOWS then GEANY_USER_CONFIG = getenv( "APPDATA" ) & SLASH &
"geany"end ifdef
-- create tags directory, if it does not already exist:if
create_directory( GEANY_USER_CONFIG & SLASH & "tags" ) then end if
constant SCREEN = 1constant DIR = 1constant FILE = 2sequence data = {
-- DIR = [1] -- FILE = [2] { SLASH &
"filedefs" & SLASH , "filetypes.Euphoria.conf"}, { SLASH & "tags"
& SLASH , "std.euphoria-4.1.e.tags" }, { SLASH
, "filetype_extensions.conf" }, { SLASH ,
"snippets.conf"} }
constant OVERWRITE_EXISTING_FILE = 1sequence destinationsequence pwd =
current_dir() & SLASHbk_color(BLACK)for i=1 to length( data ) do
destination = GEANY_USER_CONFIG & data[i][DIR] & data[i][FILE]
-- BACKUP OLD FILES text_color(BRIGHT_BLUE) display( "\n---- "
& destination ) if file_exists( destination ) then
-- make a back up copy text_color(YELLOW) for x = 1
to length(GEANY_USER_CONFIG & data[i][DIR]) -11 do puts(SCREEN, "
") end for display( " backing up ... ", 0 )
if copy_file(destination,destination &
BACKUP_SUFFIX,OVERWRITE_EXISTING_FILE) then -- do nothing
else text_color(BRIGHT_RED) display( " !!! backup failed" ) end
if
else
-- file does not exist, no need to back up
text_color(YELLOW) display( "no backup file necessary ... ", 0 )
end if
-- UPDATE FILES if copy_file( pwd & data[i][FILE], destination,
OVERWRITE_EXISTING_FILE) then
-- file is successfully updated text_color(BROWN)
display( data[i][FILE], 0) text_color(BRIGHT_CYAN) display ( "
UPDATED!")
else -- update failed text_color(BRIGHT_RED) display( "
!!! update failed")
end ifend for
Regards,
--
Kenneth Rhodes
Ubuntu 12.1
100% MicroSoft Free!
Hi,
Moved discussion of
https://sourceforge.net/tracker/?func=detail&atid=787791&aid=3607948&group_…
to this thread since discussion is easier on the mailing list than on
the bug tracker.
> Sorry but that's not quite so, at least for me: Second and following
> instances open with the '[new instance]' tag although I open with the plain
> command $ geany
> I do find that the first instance opened does receive $ geany
> somefile.txt... not sure what happens if I close that one and open a third
> or fourth. Nor do I care. That kind of
> open-when-multiple-instances-are-running command is a questionable act in
> any application.
If you do "geany a_file" and "geany b_file" then "b_file" will open in
the window with "a_file", that is the original instance. The command
"geany a_file" will not exit, but the command "geany b_file" will exit
immediately since the file was opened in the original window, that is
in the original instance.
If you do "geany a_file" and "geany -i b_file" then "b_file" will open
in a new window, that is a new instance and will be labelled by "(new
instance)". The command "geany -i b_file" will not exit.
If you do "geany a_file" and "geany" then the second geany command
will open a new window, that is a new instance, since thats the only
sensible thing it can do when told no files to open. It will be
labelled by "(new instance)".
If you close the first instance, the next time you run "geany
some_file" it will open a new window and then "geany else_file" will
open that file in the same window as "some_file".
In other words only one geany with files and without -i will ever run.
When it is running each invocation without -i will open the files in
the same window. If that Geany is closed, the next time geany is run
without -i it will take over the role of being the window other files
are opened in. This is the normal use-case, Geany is not intended to
run multiple times except in special circumstances, such as using it
as a VCS message editor.
> Settings are shared and set by the last closed instance, IIUC. That is a
> global reality that holds at all times, for all instances. The only way I
> can be sure to close the "right" instance of Geany last is if I know in
> which one I made mods to settings I wish to retain. Do you know which? I
> cannot formulate a rule. I tend to open an instance specifically for the
> purpose of modifying Geany settings.
It does not tell you which to close last since it doesn't know which
changes you want to keep.
> Does it help to inform or remind the user of this global, invariant
> behavior by tagging some instances and not others with text unrelated to
> settings? I don't see how.
It merely reminds you to be careful, for most people running multiple
instances is unusual, so the reminder is worthwhile.
> I suppose you could make this work by flashing the titlebar reversed in red
> and replacing the text with SHARED SETTINGS ARE YOU SURE YOU WANT TO CLOSE
> THIS WINDOW LAST. Please don't do that.
As I said above, Geany doesn't know which settings you want to keep,
so doesn't know which instance to show that on.
> Neither situation requires a reminder at all, persistent or not. Geany is a
> complex tool and to get the most out of it with the least astonishment, the
> user must read and understand the manual... and do some experimentation.
> I'm satisfied that the average user who does neither will still be
> productive; nor will he encounter undue astonishment.
The normal Geany use-case is the same as most other editors/ides,
command line requests to open a file are opened in the original
window. Geany is a multi-document compliant GUI application, there is
no need to run multiple copies, and most users do not do so.
> This is a bug, not a feature request; because the message text does not
> reflect anything in reality. All instances are new; that's why they're
> called 'instances'. What may be meant is that 'this' instance is 'newer'
> than another. But that's irrelevant to any other question about the
> instance.
The "(new instance)" message in the title bar reflects that this
instance has been started with the --new-instance option, either
explicitly, or implicitly by not specifying any files to open.
> It might be of interest to tag the titlebar of an instance opened with '-c'
> as 'Unshared settings'. But then, the attempt to do so raises a modal
> dialog and anybody who okays such a thing is probably aware... it's
> deliberate action. And since the new instance does indeed open without
> shared settings, its window's appearance is quite different from any of the
> instances running *with* shared settings.
It might indeed be useful to indicate the source of the configuration
for instances started with -c, but that will use even more screen
real-estate.
By the way, you can give multiple geany commands with the same -c
value and they will behave in the same way towards each other as the
set without -c, and will totally ignore the set run without -c.
> Think like a GUI designer, not like a CLI designer. This is a GUI tool.
> This is not 'vi'.
Then why are you treating it like vi and running multiple copies? As
I said above its a MD GUI application. That is how it is meant to be
used.
> Geany already has a great many user-configurable features and I don't
> suppose it would hurt to add one more; which is why I suggested that as a
> second choice. But for those who choose to turn on such a feature -- and it
> surely should NOT ship ON by default -- it should be recast so that it
> actually tells the user something of consequence.
The "(new instance)" message exactly reflects the way Geany was
started, that is what it is meant to do, and all it is meant to do.
Cheers
Lex
We are happy to announce a new release of Geany!
For a comprehensive list of changes please see:
http://www.geany.org/Documentation/ReleaseNotes
Some highlights:
* Rewrite of printing code.
* Update Scintilla to 3.2.3.
* Always display editor text in LTR direction.
* Fix re-opening files with unknown but detected encoding from last
session.
* Replace 'Open file in a new tab' save dialog option with new
'Document->Clone' menu item.
* Lots of JavaScript symbols parsing improvements.
* Add filetypes AsciiDoc and Go.
* Add translations: et, eu, he, hi, sr.
* Update translations: ca, cs, de, es, fi, gl, it, kk, lt, nl, pt_BR,
ru, sv, sl, tr.
We want to thank all developers, translators and everyone who
contributed to this release with patches, feedback, bug reports and so
on. Thank you!
As usual, all downloads can be found on http://download.geany.org/.
- Colomban