687 Commits

Author SHA1 Message Date
Nick Treleaven
a63fc1e40e Moved UI related utils from utils.c to ui_utils.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 14:24:47 +00:00
Nick Treleaven
dff3122273 Move current_word and clickpos to editor_info struct in sci_cb.c.
Move on_editor_button_press_event to sci_cb.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@789 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-04 15:57:46 +00:00
Enrico Tröger
f74ae89922 Escape special characters when shown in the status window after "Replace All" or replacing a selection.
Set the focus to the replace entry widget when pressing the tabulator key in the find entry widget in the replace dialog.
Set the focus to the find entry widget when pressing the tabulator key in the directory entry widget in the FIF dialog.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@783 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 23:28:34 +00:00
Nick Treleaven
973ea2144d Add document_get_current()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@781 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-02 20:49:11 +00:00
Enrico Tröger
6ad79f7610 Fixed some typos.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@778 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-01 15:48:56 +00:00
Enrico Tröger
58b7b0a122 Added missing inclusion of vte.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@776 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-31 18:50:10 +00:00
Enrico Tröger
5321e14d3f Change the current working directory within the VTE also when a new file is saved.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@774 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-30 18:53:45 +00:00
Enrico Tröger
a8a33cd9ef Fixed missing styling settings on new files (needs to be tested).
Now the filetype sub menu in the document file menu will be updated when the filetype is set by the filename on new files.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@764 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-26 17:12:55 +00:00
Enrico Tröger
dbab01c2c1 Added counter when using "Replace All" and display the count of replacements in the status window.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@761 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-23 18:08:48 +00:00
Enrico Tröger
d79e82f633 Moved prototype for geany_debug() to main.h.
Moved declaration of document struct to document.h.
Keep selection when commenting and uncommenting code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 15:47:18 +00:00
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