3427 Commits

Author SHA1 Message Date
Nick Treleaven
b109889e5e Add Lisp filetype (patch by Mário Silva, thanks).
Note: Lisp lexer was taken from Scintilla instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5286 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-06 17:10:15 +00:00
Nick Treleaven
572826e5e3 Group Open dialog encoding options by submenus (patch by Adam Ples,
thanks; #3047717).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5284 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-06 15:53:53 +00:00
Nick Treleaven
7c0e80c745 Fix build with GLib 2.8.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5283 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-06 15:32:40 +00:00
Frank Lanitz
e6151d16e9 Added Kazakh translation. Thanks to Baurzhan Muftakhidinov
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5282 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-06 06:07:07 +00:00
Nick Treleaven
14d751dd87 Don't cache overridden lexer properties.
Add foreach_strv() to plugin API.
Add utils_strv_join().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5280 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-05 11:07:10 +00:00
Nick Treleaven
0f63274d8b Avoid global variable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5279 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-04 14:33:21 +00:00
Nick Treleaven
1b6b5210eb Read snippet keybindings from system keyfile also.
Add keybinding example to default snippet.conf.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5278 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-04 14:29:44 +00:00
Nick Treleaven
3f04f8961e Move foreach_strv to utils.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5277 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-04 14:20:40 +00:00
Nick Treleaven
75a366c1e3 Rename snippets_init -> snippets_load.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5274 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-04 10:41:06 +00:00
Enrico Tröger
b0464705db Strip the output of {command: } templates (closes #3079063).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5272 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-02 14:36:12 +00:00
Nick Treleaven
ae70850596 Add snippet keybinding support for keys in user snippets.conf (based
on patch by Eugene Arshinov, thanks). No docs yet.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5271 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-01 15:08:43 +00:00
Nick Treleaven
45399a19f8 Refactor editor_snippets_init().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5270 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-01 14:28:05 +00:00
Nick Treleaven
dc61e14cc2 Fix passing quoted arguments when using 'Send Selection to'. This
means sed 's/\./(dot)/g' now works.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5268 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-01 12:43:32 +00:00
Nick Treleaven
050bec1bb6 Remove unnecessary 'fix' from r5224 as it breaks configuring custom
commands for 'Send Selection to' (oops).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-30 17:10:50 +00:00
Nick Treleaven
054afed310 Add Forth filetype (patch by Thomas Huth, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5266 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-30 16:59:22 +00:00
Nick Treleaven
59690a1617 Avoid delay and redrawing when automatically opening a new document
after closing one.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5265 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-30 14:49:54 +00:00
Nick Treleaven
95c4f6046e Link with X11 if found to fix linking with a recent GNU ld.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5264 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-30 14:14:54 +00:00
Nick Treleaven
fc7e82bec6 Add filetypesprivate.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5263 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-30 13:55:31 +00:00
Nick Treleaven
d8dce113a2 Add symbol_list_sort_mode per-filetype setting, set to sort by line
number by default for Markdown, reStructuredText and Txt2Tags.
Add utils_get_setting() macro for reading a key from a home or
system keyfile.
Move GeanyFiletypePrivate to filetypesprivate.h.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5262 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-30 13:50:33 +00:00
Enrico Tröger
a29174086a When commenting/uncommenting with single-line comment characters, ignore any end of line characters before evaluating the current line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5259 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-26 18:02:36 +00:00
Nick Treleaven
3fe15d0ebb Add hidden pref new_document_after_close for whether to open a new
document automatically, off by default.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5257 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-23 16:24:43 +00:00
Nick Treleaven
4bbde90860 Move editor popup menu Insert Comments submenu to top of Insert menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5256 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-23 14:37:22 +00:00
Nick Treleaven
acd07db9c1 Move 'Edit->Commands->Insert Alternative White Space' to editor popup
Insert menu.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5255 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-23 14:32:32 +00:00
Nick Treleaven
90dc51914d Fix segfault on idle callback when quitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5254 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-23 14:20:29 +00:00
Nick Treleaven
df6d46d345 Add hidden pref 'find_selection_type' with option to repeat last
search when there's no selection.
Change default Find Selection behaviour to not let the X selection
override the current word (can be confusing).
Add docs for Find Selection commands.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5253 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-23 12:22:44 +00:00
Nick Treleaven
6bb2011f14 Improve Stash GUI example.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5252 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-22 16:33:38 +00:00
Nick Treleaven
cb44ff626c Explain owner parameter of ui_hookup_widget() better.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5251 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-22 15:25:37 +00:00
Nick Treleaven
459cf4c219 Group editor popup Insert commands in a submenu, with extra items
for the most commonly used Insert Comments commands.
Show Edit->Commands before Format in menubar Edit menu (to match
keybindings order).
Show Open Selected F_ile popup item below submenus.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 17:48:42 +00:00
Nick Treleaven
911ed30800 Unify Find Selection strings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5249 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 16:40:29 +00:00
Nick Treleaven
1f063b535b Make Find Selected commands repeat the last search if the selection
was lost.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5247 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 16:25:10 +00:00
Nick Treleaven
ab673d22fd Move find_again() to search.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5246 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 16:16:15 +00:00
Nick Treleaven
c9dd691c2d Move Go to Marker menu items to Search menu.
Rename popup editor menu item Commands -> Edit.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5245 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 16:05:10 +00:00
Nick Treleaven
9c71adb4bd Open a new document automatically after closing all documents.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5244 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-20 12:19:26 +00:00
Nick Treleaven
0e008612c4 Add Search submenu for Find Selected, Find Usage, Go to Tag items,
shared with the editor popup menu.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5243 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-20 12:06:04 +00:00
Nick Treleaven
d6cc831da5 Use string for GeanySharedMenu::menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5242 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-20 11:52:07 +00:00
Nick Treleaven
cc016bf258 Refactor shared submenu code with GeanySharedMenu array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5241 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-20 11:36:50 +00:00
Nick Treleaven
e7373fabf5 Use C struct copying instead of memcpy.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5240 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-17 19:15:13 +00:00
Nick Treleaven
98e6efb3b4 Add msgwin_set_messages_dir() to API (patch by Jiří Techet, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 15:31:23 +00:00
Nick Treleaven
8b6bcf6d68 Add main_widgets.project_menu to API (patch by Jiří Techet, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5236 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 15:18:56 +00:00
Nick Treleaven
3d9bac808d Add plugin signals project-dialog-create and
project-dialog-confirmed so plugins can append a Project Properties
notebook tab (patch by Jiří Techet, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5235 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 15:14:09 +00:00
Nick Treleaven
271257a0ae Prompt for reloading if the document has an undo stack to avoid
losing undo ability on accidental reloading (patch by Colomban
Wendling, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5234 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 14:52:04 +00:00
Nick Treleaven
75226fe3f4 Update - thanks Erik.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5233 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-15 17:11:30 +00:00
Nick Treleaven
4c3ab61c3f Use a separate socket per workspace on X (patch by Erik de Castro
Lopo, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5232 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-15 17:04:23 +00:00
Nick Treleaven
a1ae5af38d Save document indent width with the session.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5231 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-15 14:59:41 +00:00
Nick Treleaven
e394aeddd1 Don't translate indent width menu items as they are now used for
atoi().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5230 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 15:19:13 +00:00
Nick Treleaven
91457e47ef Combine indent width menu item callbacks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5229 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 15:10:46 +00:00
Nick Treleaven
e664c8344f Allow per-document indent width setting (patch by Jiří Techet,
updated by Erik de Castro Lopo - thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5228 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 15:01:29 +00:00
Nick Treleaven
55ebfc0d61 Ignore directories passed on the command-line (based on patch by
Erik de Castro Lopo, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5226 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 11:29:42 +00:00
Nick Treleaven
0eca783f97 Simplify keybindings_check_event().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5225 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-13 15:37:46 +00:00
Nick Treleaven
d840f86a9d Fix some 'possible' NULL pointer dereferences (based on patch by
Erik de Castro Lopo).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5224 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-13 15:03:18 +00:00