687 Commits

Author SHA1 Message Date
Nick Treleaven
a2589f87fa Add Indent Type option in the Document menu.
Add 'Detect from file' Editor indentation pref.
Show TAB or SP for current document's indent type.
Minor editing of Document menu and editor Indentation prefs group.
Use GString for statusbar statistics.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1953 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-17 12:27:07 +00:00
Enrico Tröger
7419f18f88 Fix wrong colouring of type keywords of tags from different filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-09 12:04:15 +00:00
Enrico Tröger
960a535798 Fix scrolling bugs when searching text and the cursor is outside of the current visible area.
Unfold search result.
Also print version of Geany together with GTK/GLib version information.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1923 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-01 12:22:44 +00:00
Nick Treleaven
6e4fa68d94 Don't show file opened/saved/closed messages on the status bar.
Add temporary function msgwin_status_add_new() for v0.12 (to avoid
many code changes updating msgwin_status_add() before the release).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1913 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-27 11:39:21 +00:00
Nick Treleaven
07d6f819ca Change scroll by line default keybindings to Alt-{Up, Down}.
Change Previous/Next Paragraph Scintilla commands to Ctrl-{Up, Down}.
Adding Shift extends selection by paragraph.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1880 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-13 12:38:14 +00:00
Nick Treleaven
b7113bfa7a Add reload_file() document function to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-11 16:05:03 +00:00
Nick Treleaven
274058eb7a Neaten up the plugin API:
Make document_open_file() now wrap document_open_file_full(),
without the idx for reloading or pos arguments.
Replace str_replace() with string_replace_all() in the plugin API.
Add utils_string_replace_all(), taking a GString argument.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1868 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-11 15:21:11 +00:00
Enrico Tröger
7111acdc06 Make keybinding for scrolling by one line changeable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-05 18:55:51 +00:00
Enrico Tröger
bc3c9f62f4 Fix missing syntax colouring when saving new files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1853 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-05 18:38:42 +00:00
Nick Treleaven
e18b145ec7 Rewrite document_find_by_filename() to work when the filename
argument contains relative path elements or symlinks.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1852 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-05 16:22:50 +00:00
Nick Treleaven
1887a20df4 Add text argument for document_new_file(), so that it's independent
from filetype templates.
Make File->New create a blank document, rather than using the None
filetype template.
Add None option for the 'New with Template' menu commands.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-03 16:09:53 +00:00
Nick Treleaven
fd161f582d Add hidden editor preference 'use_gtk_word_boundaries'.
Add docs appendix 'Hidden preferences'.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1834 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-28 15:45:54 +00:00
Nick Treleaven
b401b698ea Move file-related fields from EditorPrefs -> GeanyPrefs.
Rename line_breaking -> line_wrapping for EditorPrefs and document.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1823 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 16:20:33 +00:00
Nick Treleaven
ade8718241 Add pos description for document_open_file(), rewrite warning about opening multiple files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1821 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 12:06:59 +00:00
Nick Treleaven
719c2131cf Fix wrong brace formatting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 11:31:27 +00:00
Enrico Tröger
7b14228f62 Fix invalid filetype setting when using Save All and files with filetype None (thanks to Omair Eshkenazi for reporting).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 17:59:22 +00:00
Nick Treleaven
ef1399e000 Rename MyApp -> GeanyApp.
Move most GeanyApp fields into:
GeanyPrefs for (most) Preferences dialog fields;
UIPrefs for non-Prefs dialog visual settings;
UIWidgets for less commonly used widgets such as menuitems and
dialogs;
GeanyStatus for various states the application can be in.
Move some GeanyApp fields into EditorPrefs (and one into each of
CommandLineOptions and SidebarTreeviews).
Add plugin API prefs field.
Move disabling build widgets on Windows to build_init().
Make build callbacks static.
Add treeviews_init() to prepare popup menus and open files treeview.
Replace treeviews_find_node() with treeviews_select_openfiles_item().
Make utils_isbrace() and utils_is_opening_brace() take an
'include_angles' argument (to separate from editor_prefs).
Make 'Goto matching brace' keybinding include <> angle brackets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 11:34:06 +00:00
Nick Treleaven
5402da7a0d Use sci_assign_cmdkey() to set GtkEntry-like word boundary handling.
Clear unnecessary default Scintilla Ctrl-D duplicate keybinding.
Add SCI_DELWORDRIGHTEND command (patch sent to Scintilla ML).
Remove previous ScintillaGTK::KeyCommand override.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1807 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-16 16:56:17 +00:00
Nick Treleaven
9f46d083c5 Move #define PLAT_GTK to geany.h.
Move filetype typedef to geany.h.
Don't #include any src/*.h files from headers.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-15 15:37:21 +00:00
Nick Treleaven
15cec02d07 Add plugin symbol geany_callbacks (see plugindata.h for details).
Add GeanyObject type with "document-new", "document-open",
"document-save" signals.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1785 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-10 16:11:17 +00:00
Enrico Tröger
222c4938ed Fix wrong selection handling when using Color Chooser.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-25 08:23:17 +00:00
Nick Treleaven
bab11250da Fix hang when replacing all '[ ]*' regex matches (closes #1757748).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1739 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-24 15:34:35 +00:00
Nick Treleaven
2178c7c887 Rename ui_close_buttons_toggle() ui_document_buttons_update().
Move app->sensitive_buttons to ui_utils.c for easier maintenance,
rename to document_buttons.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-20 12:06:51 +00:00
Nick Treleaven
73007c11e8 Move font & file open/save dialog callbacks to dialogs.c.
Add document_clone() in document.c (for Save As open in new tab).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 14:52:57 +00:00
Enrico Tröger
3b00085ae9 Fix compiler warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 12:37:48 +00:00
Enrico Tröger
b54eb0a180 Always use g_fopen() and g_stat() instead of fopen() and stat() to fix several problems with filenames containing special characters on Windows. Use GetFullPathName() instead of lrealpath() to get Tagmanager working on files containing special characters on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 12:04:46 +00:00
Enrico Tröger
3bcd10b0d8 Add keybindings for smart indent and indent/deindent by one space.
Fix possible selection errors on commenting multiple lines when using CR/LF line endings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-16 15:42:12 +00:00
Enrico Tröger
6cb765e374 Use again the usual, previous way of line scrolling and use SCI_SETXCARETPOLICY for horizontal scrolling.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1696 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-12 17:16:44 +00:00
Nick Treleaven
8743d2f994 Apply patch from Jeff Pohlmeyer to add a preference for whether to
use 'smart' home key behaviour (thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1695 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-12 15:44:13 +00:00
Enrico Tröger
bc2c3fddf1 Experimental change of scrolling to get horizontal scrolling working.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1691 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-11 17:05:13 +00:00
Enrico Tröger
8528f95e82 Change the background colour of the search bar in the toolbar according to the search result.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-09 17:33:31 +00:00
Enrico Tröger
7b99a9f325 Add keybinding for Select, Transpose, Cut, Copy and Delete line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1674 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-07 15:12:13 +00:00
Enrico Tröger
4e774e083f Use the default GTK file save dialog on Windows. Prevent some (probably) unnecessary filename encoding conversions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1671 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-06 12:37:07 +00:00
Enrico Tröger
6069531e78 Fix focus problem when using the Find dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-04 17:08:53 +00:00
Nick Treleaven
9f471c5bec Fix hang with Find All/Usage with regex '^' or '$'.
Fix replacing '^' or '$' regexes.
Use double quotes for search strings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-28 16:00:29 +00:00
Enrico Tröger
541bd309a6 Change signature of sci_replace_sel() to take a const gchar*.
Move code to insert a colour to document.c
Let the code also work on Windows (untested).	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-27 19:36:43 +00:00
Enrico Tröger
80918e9f03 Add option to set a default encoding when opening files and disable auto detection of the file encoding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-26 15:41:27 +00:00
Nick Treleaven
05cbc77bab Rename some menubar widget names.
Use indentation spelling in variable names.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-12 15:16:17 +00:00
Enrico Tröger
8cae1cc3ee Add auto focus (to auto focus widgets below mouse cursor).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-11 08:58:37 +00:00
Enrico Tröger
1aab870724 Prevent hang if searching for a regular expression fails (closes #1733676).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1605 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-09 12:57:04 +00:00
Enrico Tröger
fbd6af9919 Apply from François Cami and Guillaume Duviol to improve replacement of tabs by spaces (thank you).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1603 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-09 12:11:18 +00:00
Nick Treleaven
4193196248 Move MyApp::pref_editor_* to editor.h, using editor_prefs struct.
Move INDENT_* enums to editor.h.
Move utils_get_whitespace() to editor.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1587 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-29 16:30:54 +00:00
Nick Treleaven
fdaa689bff Rename sci_cb.[hc] editor.[hc].
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1584 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-28 16:07:30 +00:00
Nick Treleaven
b4dc6feabc Show current project name in window title.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1582 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-28 15:24:21 +00:00
Nick Treleaven
58e151698e Replace filetype::has_tags member with filetype_has_tags().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1578 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-26 12:13:53 +00:00
Enrico Tröger
5331b0ada0 Fix loading of UTF-16/32 encoded files with a BOM.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1566 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-24 10:24:26 +00:00
Nick Treleaven
f8eddeb70a Fix removing indent spaces after switching back to tab indenting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-14 13:06:18 +00:00
Nick Treleaven
76f03b068b Make backspace unindent when using spaces for indentation.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-09 11:23:50 +00:00
Nick Treleaven
882f59c309 Make replace all commands report no matches for read-only documents.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1490 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-30 12:24:40 +00:00
Nick Treleaven
6287c9d146 Fix reloading of read-only documents.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1489 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-30 12:17:31 +00:00