477 Commits

Author SHA1 Message Date
Enrico Tröger
0f82b3d47c Use codepage SC_CP_UTF8 because we use always GTK even under Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-18 17:44:46 +00:00
Nick Treleaven
66a68d80ac Move filename/filetype/encoding debug message to start of document_set_filetype so it is printed before the file is parsed
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@722 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 12:51:36 +00:00
Enrico Tröger
e87b87b015 Added colour values for indentation guides and white space.
Made hard coded SCI_AUTOCSETMAXHEIGHT changeable and added an option in the preferences dialog.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-13 15:04:30 +00:00
Enrico Tröger
6b1d4c2b2d Use wrappers for converting between utf8 and locale encoding.
Fixed small memory leak.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@709 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-13 08:36:52 +00:00
Enrico Tröger
d7dcd5474c Removed unnecessary code in document_replace_tabs().
Really take tab width when replacing instead of using width = 4.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 16:24:29 +00:00
Enrico Tröger
58f2a195ad Fixed possible segfault when replacing tabs by spaces.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@695 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-11 17:19:16 +00:00
Nick Treleaven
795fc85083 Move recent file item to the top when it is clicked on
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@680 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-07 14:53:58 +00:00
Enrico Tröger
62e840b723 Revert unwanted change
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@664 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-02 21:52:23 +00:00
Enrico Tröger
53d91a4c55 Fixed wrong behaviour of Save As on unchanged files.
Don't set file as changed when changing encoding to the same one.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-02 10:50:53 +00:00
Nick Treleaven
db4cf9e59f Apply the tab width setting for new documents
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@658 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 13:24:58 +00:00
Nick Treleaven
35003deb31 Added Auto indentation and Line wrapping options to Preferences dialog; Split up Miscellaneous items into Display and Features; Renamed Change Selection and Run toolbutton.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 10:06:28 +00:00
Enrico Tröger
4e122c97b7 Removed macro GEANY_WIN32, use G_OS_WIN32 instead.
Introduced global variables for PACKAGE_DATA_DIR and  PACKAGE_LOCALE_DIR, removed macro DOCDIR (these changes are important for the Windows port).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-26 17:02:16 +00:00
Enrico Tröger
902379738b Removed some unneeded functions to avoid duplicate code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@629 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 12:46:08 +00:00
Enrico Tröger
a7361b6464 Save default encoding for new files as charset string.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@626 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 09:12:51 +00:00
Enrico Tröger
1511e7563e Set CR/LF as EOL mode on new files on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@624 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 00:10:36 +00:00
Enrico Tröger
e1f79b7d3e Added menu item to the document menu to add/remove BOM.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@620 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-24 20:23:56 +00:00
Enrico Tröger
ab05f39d24 Renamed document element unicode_bom in has_bom.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-23 15:45:05 +00:00
Enrico Tröger
5a97fb2d0e Fixed some mistakes from last commit.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@610 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-23 13:14:23 +00:00
Enrico Tröger
4ec2bd121b Added Unicode BOM detection.
Added "Reload as" menu item to force opening a file with a specified encoding(both were patches from Stefan Oltmanns).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@600 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 01:29:10 +00:00
Nick Treleaven
96a4a059df Added Find button to Replace dialog to skip a match; Change Replace button to find first & use current selection; Ask whether to wraparound when replacing and no next match is found
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@597 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-20 21:19:18 +00:00
Nick Treleaven
b9f6cf6987 Use more POSIX-like syntax for regular expression bracket matching; Prevent searching backwards with a regex (unsupported); Scroll in view after the last replacement for replace all/selection. Also move hiding the replace dialog out of document.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@582 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-18 17:43:22 +00:00
Nick Treleaven
5f05ba684a Fix replacing the right length of text matched from a regex; Add support for back references when replacing with regex; Improve the speed of replace all/replace in selection; Don't lose the selection range after replacing in selection
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@581 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-18 14:09:01 +00:00
Enrico Tröger
1b0b22a210 Use real length of data instead of -1.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@576 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-17 19:24:35 +00:00
Enrico Tröger
6516c31a6a Moved document related functions from utils.c to document.c.
Keep cursor position when replacing tabs by spaces.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@572 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-17 10:42:26 +00:00
Enrico Tröger
77ef665218 Removed code for alternative scrolling(it was not better).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-16 21:31:09 +00:00
Enrico Tröger
f481b55f46 Added filename to an error message.
Removed function encodings_get_encodings().
Simplified locale detection and little speed up.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@569 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-16 19:28:13 +00:00
Nick Treleaven
58efd38deb Don't include SciLexer.h in geany.h
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-04 21:31:08 +00:00
Enrico Tröger
424bfd32ca Added shortcut for Select All.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-01 14:12:05 +00:00
Enrico Tröger
7c9d6df76e Improved settings for the long line marker, it can now be easily disabled or set to highlight the background of too long lines.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@511 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-30 14:28:32 +00:00
Enrico Tröger
b3dd894a5e Implemented simple printing support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-29 17:14:52 +00:00
Nick Treleaven
42a206085e Apply fonts in Preferences when they are set and only if they have changed. Rename utils_set_font to utils_set_editor_font. Remove an old comment in document_open_file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-29 16:55:29 +00:00
Enrico Tröger
5ffa222e4f Fixed a small typo.
Skip converting from UTF-8 in UTF-8 when saving.
Show an error messages dialog if the conversion into an encoding failed.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-28 19:27:19 +00:00
Enrico Tröger
f741c89b4f Fixed bug which prevented tag creation for the first opened file.
Removed unused code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@491 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-26 17:44:18 +00:00
Enrico Tröger
2269d3d47e Reload also the symbol list when reloading a file.
Changed some titles to plural. Added own definitions for filetype Python.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@489 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-26 16:19:28 +00:00
Nick Treleaven
add773c88c Fix a possible segfault on quitting caused by processing GTK messages before status messages
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@487 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-26 15:49:07 +00:00
Nick Treleaven
efe658834e Enable drag reordering of tabs for GTK+2.8, and a temporary workaround for GTK+2.6. Add notebook_new_tab and update document_create_new_sci to use it; also remove on_tab_close_clicked
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@479 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-25 12:13:35 +00:00
Enrico Tröger
3a435bf29e Replaced 'blank' by 'include "..."'. Fixed a bug in utils_brace_match() which prevents correctly matching.
Made auto completion work only for the current filetype (i.e. it hides symbols from other filetypes).
Removed unneeded code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@474 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-24 14:36:35 +00:00
Enrico Tröger
f375a6be68 Added missing shortcut for "Close".
Added option in the preferences dialog to replace tabs by spaces when saving a file.
Added option for default encoding for new files.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-21 18:54:07 +00:00
Nick Treleaven
e6caa033eb Also show status messages on the status bar
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@469 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-20 14:54:09 +00:00
Nick Treleaven
13b673d8ed Go back to the same line when reloading. Fix start selection bug when clicking in the current file if it has changed
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-20 11:55:34 +00:00
Enrico Tröger
2b362ef8a7 Implemented encoding support to switch between different encodings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@467 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-19 18:31:17 +00:00
Enrico Tröger
73384bb248 Implemented code for setting indicators while compiling.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@442 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-13 19:37:21 +00:00
Enrico Tröger
c4125cf12f document_open_file() returns the index of the opened file.
Open or switch to files when clicking on compiler error messages and the error message mentions another file than the opened one.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@434 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-11 22:39:11 +00:00
Enrico Tröger
886b90f3d0 Fixed a segfault in document_find_by_filename().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@431 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-11 14:08:10 +00:00
Nick Treleaven
79b4256758 Fix bug with Go to tag defn/decl when the filename is a link (TagManager dereferences linked filenames)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@421 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-07 21:24:15 +00:00
Enrico Tröger
9446020898 fixed wrong setting of filetype when using "All files" as filetype
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@410 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-05 15:10:40 +00:00
Nick Treleaven
e5f238c232 Scroll session files in view after all resizing of the Scintilla widget and rename sci_scroll_to_line
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@379 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-30 18:03:19 +00:00
Nick Treleaven
2c8e69a1a7 Fix incremental find and replace of back to back matches
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@368 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-26 17:11:41 +00:00
Nick Treleaven
42e71c36cf Make Replace in selection non-incremental and use single Undo blocks for this and for Replace All
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@364 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-25 15:32:03 +00:00
Nick Treleaven
fc1023a97a On loading use SCI_SETTEXT instead of SCI_ADDTEXT to avoid Scintilla text changed signal
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@363 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-25 12:57:12 +00:00