254 Commits

Author SHA1 Message Date
Enrico Tröger
c3972d6b2d Connect only once to the "sci-notify" signal.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-10 13:52:22 +00:00
Nick Treleaven
93ba5ba45f Removed the GEANY_MAX_OPEN_FILES limit, using a dynamic array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-09 16:08:53 +00:00
Enrico Tröger
ac359bc327 Implemented simple "shebang" detection.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-06 23:23:05 +00:00
Enrico Tröger
6f00febd3c Fixed crash when using "Make object" on new files(closes #1570818).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@866 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-04 19:14:57 +00:00
Enrico Tröger
642889e97a Reordered command line options alphabetically.
Added new command line option --line to set the initial line for the first opened file.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-03 13:16:42 +00:00
Nick Treleaven
464e9b7d0b Change sci_get_line to return a NULL terminated string.
Fix memory leak and possible invalid read in sci_cb_auto_latex().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-02 15:22:29 +00:00
Nick Treleaven
f93a8f9df2 Clear the symbol list when opening a file with no tags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-30 16:15:45 +00:00
Nick Treleaven
913e783a43 Reorder the recent files list if necessary when a file is
(re)opened - closes #1552178.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@805 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-09 12:03:11 +00:00
Nick Treleaven
0701ee9941 Use handle_forced_encoding(), handle_encoding() and handle_bom()
when opening files.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@804 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 15:05:32 +00:00
Nick Treleaven
d3eb239d81 Show parsable errors in red; stderr and compile failure in dark red
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 10:20:15 +00:00
Enrico Tröger
bf5ae49665 Moved the socket code from main.c to socket.c.
Remove an unchanged empty document when loading a new file (closes #1545129).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@798 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-07 15:51:24 +00:00
Enrico Tröger
4a44c1a000 Fixed wrong function call order when removing documents.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@797 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 18:26:08 +00:00
Enrico Tröger
557b86dc2b Fixed a crash when a compiler output reports an error in a blank line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@796 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:53:58 +00:00
Enrico Tröger
09d7f30aec Convert tag names to UTF-8 before showing them in the sidebar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:31:53 +00:00
Enrico Tröger
116728caae Added own implementation of an Undo stack (not yet working).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 16:09:08 +00:00
Enrico Tröger
5a05227d87 Don't quit when an error occurs while saving changed files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 18:33:48 +00:00
Enrico Tröger
d7951f66d0 Added new file template for filetype HTML.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 16:55:40 +00:00
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