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
e4edda0fa2
Allow using Find In Files dialog even if no files are open ( closes #1891818 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-12 12:04:21 +00:00
Nick Treleaven
667126d7f6
Factor out get_search_flags() from Find, Replace dialog response
...
code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-29 16:34:16 +00:00
Nick Treleaven
5994857b42
Allow case sensitive replace when the replace string varies only
...
in case.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2196 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-29 12:21:02 +00:00
Nick Treleaven
6eceb83d41
Make 'Open Selected File' first try the current file's directory,
...
falling back to the project base path if no file was found.
Add editor_get_default_selection() from get_default_text() in
search.c, to get the current selection or current word.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2172 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-14 17:30:59 +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
Nick Treleaven
2ef88ff298
Add mnemonics for Find All, Replace All expanders in dialogs.
...
Fix Find dialog mnemonic conflict _f.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-02 16:23:32 +00:00
Nick Treleaven
39738f90ca
Make Open, Save As dialogs start in project base path (or default
...
path pref) when the current file has no filename.
Split up widget setup code for dialogs_show_open_file(),
dialogs_show_save_as().
Add initial_dir argument for win32_show_file_dialog().
Add utils_get_default_dir_utf8().
Rename utils_get_current_file_dir() to
utils_get_current_file_dir_utf8().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2122 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-21 17:25:58 +00:00
Enrico Tröger
c27e9b54c6
Add search_show_find_in_files_dialog() to the plugin API.
...
Make path entry of filebrowser plugin editable.
Add "Open with" and "Find in Files" popup menu items to filebrowser plugin and add configuration dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2085 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-02 10:52:19 +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
Nick Treleaven
90f19ceb3f
Remove unused variable.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1970 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-23 15:23:08 +00:00
Nick Treleaven
601fb23da4
Add foreground colouring to messages items.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-09-17 16:33:17 +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
25e596bf0d
Add allocation for NULL-terminated selection ends.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1765 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-30 10:40:09 +00:00
Nick Treleaven
8fe0974d8a
Capitalize some dialog titles.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-12 11:59:13 +00:00
Enrico Tröger
9ff36c9a18
Also change background colour of search bar when using find next/previous after using the search bar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1692 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-11 17:44:43 +00:00
Enrico Tröger
4d769f61b0
Fix usage of wrong dialog pointer.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1667 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-05 15:44:08 +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
Enrico Tröger
b737d4b963
Improve many mnemonics in the Search, Find in Files and Replace dialogs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-29 16:01:40 +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
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
Enrico Tröger
085012e2be
Oops, forget to commit with r1535.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1541 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-16 17:09:02 +00:00
Nick Treleaven
9570443c7b
Use open folder dialog for project base path instead of create folder
...
dialog (better for choosing existing directories, and can still
create new folders).
Add optional title parameter for open dialog with ui_path_box_new()
and ui_setup_open_button_callback().
Use Windows folder dialog in ui_path_box_open_clicked().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 16:34:18 +00:00
Nick Treleaven
163890a33e
Move search_get_file_list() to utils.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1520 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 11:42:00 +00:00
Nick Treleaven
56404160de
Show number of matches when using Mark command.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1492 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-30 12:43:22 +00:00
Nick Treleaven
7e000a4668
Switch to status window when using Replace In Session to show which
...
documents had replacements made.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1491 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-30 12:32:13 +00:00
Nick Treleaven
ec939b4736
Allow replacing identical text if case sensitive is not checked.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1488 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-30 12:03:46 +00:00
Nick Treleaven
98f64da8f6
Add ui_path_box_new() for creating a path text entry with an open
...
button, which runs a file chooser to set the text entry.
Add ui_setup_open_button_callback() for setting up a button callback
that behaves like the open button in ui_path_box_new().
Use ui_path_box_new() in FIF dialog setup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1485 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-29 12:03:25 +00:00
Nick Treleaven
8154ee59c8
Disable FIF extra options entry when checkbox is not checked.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1476 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-24 10:52:08 +00:00
Nick Treleaven
1b715a59f6
Move 'Recurse in subfolders option' FIF option below the others.
...
Add tooltip for extra options entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1452 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-15 16:13:57 +00:00
Nick Treleaven
1545968ce3
Save FIF extra options string in the keyfile.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1451 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-15 15:59:57 +00:00
Nick Treleaven
cfb073a2bf
Add 'Extra options' field and checkbox to FIF dialog.
...
Don't allow arguments appended to Grep command.
Prevent warning when using relative paths with open directory button.
Refactor FIF options code into get_grep_options(), remove
fif_options, fif_match_type.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1435 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-03 15:57:12 +00:00
Nick Treleaven
b8d7e96375
Add recursive option to Find in Files dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1434 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-03 11:04:44 +00:00
Nick Treleaven
68cdcc0e06
Prevent Find in Files directory combo being vertically stretched.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1432 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-30 16:34:51 +00:00
Nick Treleaven
51b4f03a2d
Don't beep when pressing escape to close the Find or Replace dialogs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1421 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-24 16:27:19 +00:00
Enrico Tröger
90b01daf35
Fixed several compiler warnings (mainly shadowing local variables and unreachable code).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 13:52:26 +00:00
Enrico Tröger
b1188781de
Oops, forgot to commit.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1355 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 22:20:37 +00:00
Nick Treleaven
9a309114c2
Show number of matches when using Find All or Find in Files.
...
Add msgwin_msg_add_fmt().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1345 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-28 12:08:40 +00:00
Nick Treleaven
806dd5be1d
Add descriptions for all .c source files below the file header.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Enrico Tröger
1e34e879c3
Fixed compiler warning.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1306 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-19 15:41:29 +00:00
Nick Treleaven
fd2de222be
Add Mark button as a Find All option in the Find dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1301 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-17 17:39:10 +00:00
Nick Treleaven
4b1cb28462
Show grep command and directory when using Find in Files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1296 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-16 17:09:53 +00:00
Enrico Tröger
8bd2debe4d
Added keybinding and menu entry to open a file which is selected in current tab.
...
Made Insert Special HTML characters insensitive if there are no open tabs.
Removed Zoom items from popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1225 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-24 19:20:12 +00:00
Nick Treleaven
f62a0b6f82
Setup Find Next/Previous to use the same search text after using
...
Find Selected/Prev Selected.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1223 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-24 12:35:05 +00:00
Nick Treleaven
e8a22dee62
Applied patch from Jeff Pohlmeyer to add 'Find Selected' and
...
'Find Prev Selected' Search commands and keybindings (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1222 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-23 17:51:30 +00:00
Enrico Tröger
278458e436
Fixed crashes when using some dialogs after they were closed before.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1209 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-19 23:17:40 +00:00
Enrico Tröger
7b61ad934d
Updated copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Nick Treleaven
458d2bb47e
Remove unneeded static from current word strings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1131 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-20 15:57:28 +00:00