Nick Treleaven
a8ab07fd19
Recolourise the document in document_reload_file() because the
...
text may have changed (should fix #1948857 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2578 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-14 11:58:05 +00:00
Nick Treleaven
d131023fe7
Add basic Line Breaking option in the Document menu. Line breaking
...
only works when typing characters past the line breaking column
number.
Add 'Line breaking column' editor pref.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2562 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-09 12:13:29 +00:00
Nick Treleaven
f20b4e90f1
Merge revisions 2537:2558 from the custom-filetypes branch:
...
Note: this breaks the API.
This commit is to restructure most of the filetypes code that
affects the plugin API, custom filetype support is not implemented.
Add filetypes_array to GeanyData for plugins to access a dynamic
array of filetype pointers.
Remove old filetypes array from API.
Use a hash table for filetypes, using filetype::name keys.
Replace filetypes_get_from_uid() with filetypes_lookup_by_name().
Store filetype::name instead of unique ID when saving sessions.
Remove all filetype UID code.
Add GEANY_MAX_BUILT_IN_FILETYPES.
Remove GEANY_MAX_FILE_TYPES - use filetypes_array->len (or
GEANY_MAX_BUILT_IN_FILETYPES) instead.
Rename GEANY_FILETYPES_ALL GEANY_FILETYPES_NONE.
Make Open dialog file filter work for filetypes added after
GEANY_FILETYPES_NONE (really the None filetype should be made the
first element in filetypes_array, but this would need rewriting
quite a lot of code).
Add deprecated aliases for GEANY_MAX_FILE_TYPES and
GEANY_FILETYPES_ALL.
Remove unused filetype::item field.
Create FullFileType private type that 'inherits' from filetype
(FullFileType* can be cast to filetype*). This is used in
filetype_new() to hide filetype struct fields from the API.
Remove radio_items[] and use FullFileType::menu_item instead.
Make filetypes_detect_from_extension() work for all filetypes
in filetypes_hash.
Add filetype_new() to create and initialize a new filetype.
Refactor open_session_file() from configuration_open_files().
Refactor get_session_file_string() from
configuration_save_session_files().
Refactor create_set_filetype_menu() from filetypes_init().
Move print_filetypes() out of parse_command_line_options();
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2559 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 16:29:48 +00:00
Nick Treleaven
00c722966c
Rename GEANY_FILETYPES_ALL GEANY_FILETYPES_NONE.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2556 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 13:54:21 +00:00
Enrico Tröger
e9245af57c
Show an error dialog with an appropriate message when a file could not be saved.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2548 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-04 16:45:26 +00:00
Enrico Tröger
50e6868c25
Fix crash when trying to change the encoding of a file (introduced in r2529).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-27 15:05:40 +00:00
Enrico Tröger
4cec2ade93
Refactor write_data_to_disk() and save_convert_to_encoding() from document_save_file().
...
Include missing error string in error message when writing the file failed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2529 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-25 12:49:38 +00:00
Nick Treleaven
3ce268801a
Add/reorder a recent file item when closing a document.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2527 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-25 11:47:01 +00:00
Nick Treleaven
3afebc701c
Move Close All functions to document.c.
...
Add document_account_for_unsaved().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-24 14:33:12 +00:00
Nick Treleaven
dc398a3b59
Add document_close_all() and use it in project.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-23 17:07:52 +00:00
Enrico Tröger
c87a82adec
Make use of ngettext() for strings with plural forms.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-22 14:44:45 +00:00
Enrico Tröger
2698b343a0
Clean related navigation queue items when closing a document.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-19 08:14:00 +00:00
Enrico Tröger
9024500f92
Add document_new_file_if_non_open() to open new documents if no other documents are open.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2453 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-08 14:07:17 +00:00
Enrico Tröger
34438f1290
Avoid setting line number margin twice when creating new tabs, also don't call gtk_notebook_set_current_page() explicitly as it isn't necessary.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2439 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-02 13:58:25 +00:00
Nick Treleaven
6b88c068a1
Split document_create_new_sci() into document_create() and
...
create_new_sci().
Rename filename parameter utf8_filename.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2422 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-27 13:59:51 +00:00
Enrico Tröger
35602e14ca
Add support for resolving Windows shortcuts when opening files and open the shortcut's target.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2416 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-26 18:53:59 +00:00
Nick Treleaven
1e387f4dc5
Replace untitled file header filename after Save As and add to recent
...
files on Windows too.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2381 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-21 16:59:30 +00:00
Nick Treleaven
c248368faf
Only use filetype detection after Save As, not on every save when the
...
filetype is None (fixes #1891778 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2377 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-21 14:02:59 +00:00
Nick Treleaven
e3a71b8a9f
Fix Doxygen undocumented parameter warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2340 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-13 17:53:03 +00:00
Enrico Tröger
3eca552b45
Use SCI_SETSCROLLWIDTHTRACKING to improve horizontal scrollbar behaviour by always adjusting to the longest line (part of #1905141 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2316 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-09 16:30:01 +00:00
Enrico Tröger
076066c7db
Don't open zero byte sized files read-only (e.g. files in /proc).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2307 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-05 17:34:00 +00:00
Enrico Tröger
fcc756701a
Fix a few more compiler warnings (type conversion warnings).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2289 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 14:23:13 +00:00
Enrico Tröger
b7bfb2743a
Replace all C++-style comments with usual C-like multi-line comments.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 13:17:29 +00:00
Nick Treleaven
78a063e54b
Don't beep when using Replace All in Session unless all open files
...
have no replacements (fixes #1893796 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2283 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-25 17:27:54 +00:00
Nick Treleaven
3714cf498f
Don't scroll the editor view if it is unnecessary when using Find
...
Next/Previous, Find Selected and when searching from the search bar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2274 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-22 13:30:16 +00:00
Enrico Tröger
85f73129c0
Apply patch from Daniel Richard G. to fix to fix several compiler warnings, C89 violations and minor code problems (thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-20 11:24:23 +00:00
Enrico Tröger
0e65cff820
Add support for generating API reference documentation using doxygen.
...
This is the first step, it is far away from being complete.
Add make target "api-doc" to generate the reference documentation.
Add documentation comments to a few functions.
Move basic plugin documentation from plugindata.h to doc/plugins.dox.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2263 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-17 18:00:42 +00:00
Enrico Tröger
6413fdb2bf
Add hidden preference to disable scrolling past end of document.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2260 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-15 16:34:30 +00:00
Enrico Tröger
57533aa092
Fix some compiler warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2257 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-13 18:54:05 +00:00
Enrico Tröger
29d1102f76
Don't force unique line ending characters when saving files to avoid unexpected saving behaviour.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2252 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-12 12:30:41 +00:00
Nick Treleaven
ff9c673ed2
Apply patch from Yura Siamashka to speed up removing several
...
workspace object's tags without updating the workspace until
necessary (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2164 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-11 17:09:23 +00:00
Enrico Tröger
e3201062c6
Update copyright information and change format of email addresses in source files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 18:11:57 +00:00
Enrico Tröger
7746eee602
Avoid crash on Windows with enabled debug messages.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2136 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-30 15:31:45 +00:00
Enrico Tröger
80532b616d
Store more document-related settings session-based in the configuration file(including the file encoding).
...
Detect in-file specified file encoding by scanning the file using regular expressions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2093 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-07 14:13:05 +00:00
Enrico Tröger
834fbcfc2e
Add "b" flag to fopen when saving files to avoid broken line ending characters on Windows (flag was removed by accident, closes #1844405 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2090 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-05 13:36:11 +00:00
Enrico Tröger
e4d11212cf
Deny "(Un)Fold All" actions when folding is disabled.
...
Hide "(Un)Fold All" menu items instead of just disabling them.
Add dialogs_show_msgbox_with_secondary().
Add line and column number in charset conversion error dialog when saving a file and improve display of the failed character.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2075 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-29 18:08:20 +00:00
Enrico Tröger
bb974f08f2
Display character which caused a failed encoding conversion when saving a file.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2071 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-25 13:48:22 +00:00
Enrico Tröger
fff66178da
Add native GTK printing support.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2050 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-17 14:04:27 +00:00
Enrico Tröger
4b43e762d0
Rename "Contruct autocompletion" to "Snippets".
...
Allow changing height of the symbol completion list even if automatic symbol is disabled, it still can be forced by keybinding.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2044 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-12 09:27:43 +00:00
Nick Treleaven
4fcc44ee72
Allow scrolling past end of document, so the user can append text
...
with the last lines drawn at the top of the view.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2030 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-06 17:29:51 +00:00
Enrico Tröger
e99a263013
Fix compile error on Windows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2021 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-05 18:05:49 +00:00
Enrico Tröger
c5f7867aea
Don't use unnecessary #ifdefs for utils_get_locale_from_utf8().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2019 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-05 15:09:13 +00:00
Nick Treleaven
046d5ef796
Fix bug with using the default extension, not the user set one, if
...
'New with template' is used before any documents of the same filetype
are open.
Load filetype keyfiles from filetypes_load_config(), not from
styleset_foo_init().
Add highlighting_init_styles(), highlighting_set_styles(),
simplifying a lot of styleset function code.
Remove filetype::style_func_ptr field.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-02 17:44:05 +00:00
Enrico Tröger
c25e30510d
Remove Scintilla keybinding Alt-Backspace for Undo.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2009 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-02 16:07:01 +00:00
Nick Treleaven
dcd06b21af
Ensure document_update_tag_list() always shows the empty symbol list
...
when tags cannot be parsed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2004 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-01 13:00:32 +00:00
Enrico Tröger
991a6c7811
Create tagmanager status file in configuration directory, not in a guessed temporary directory to ensure having write access. Fix crashes if status file can't be written.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-01 11:49:29 +00:00
Nick Treleaven
d8c3ecaf11
Ensure empty symbol list is shown when tags cannot be parsed (fixes
...
wrong symbol list shown when creating a new document with an unsaved
filename set).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1998 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-31 16:22:01 +00:00
Nick Treleaven
c1205dc504
Use newline as autocompletion list separator, so that reST entries
...
show correctly.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1995 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-31 12:56:12 +00:00
Nick Treleaven
25b85ba09c
Make Fold All/Unfold All attempt to scroll the current line in view.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1989 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-29 16:53:40 +00:00
Nick Treleaven
601dfd69f7
Make msgwin_status_add() only log a message, not display it on the
...
status bar.
Make ui_set_statusbar() take a log argument for whether to record the
message in the Status window.
(Plugin API functions already do this).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 10:52:48 +00:00