Commit Graph

42 Commits

Author SHA1 Message Date
Allan Odgaard
8265a469d8 Improve locating Find framework resources
The FFWindowController class is an implementation detail where the Find class is the public class, so depending on the latter should make the code safe against potential rewrites.
2013-02-04 19:38:31 +01:00
Allan Odgaard
f57b06fa2c Move instance variables to implementation 2013-02-04 19:38:00 +01:00
Allan Odgaard
645f8d91e1 Let OS handle keys for Go to Tab submenu
My memory is a little vague here, but I believe the point of handling the menu keys was to workaround a bug in NSMenu.

The bug was that NSMenu would look at (the target of) cached menu items, probably for UI validation, so potentially sending methods to unretained objects, which could lead to a crash. Several workarounds were attempted (like clearing the target property after the menu had been displayed) but the only effective one was overloading key handling.

I’m quite sure though that this bug is no longer relevant.
2013-01-22 11:00:27 +01:00
Allan Odgaard
54f1343ca2 Folder search now reads all relevant exclude patterns
Previously it wouldn’t read kSettingsExcludeDirectoriesKey and kSettingsExcludeFilesKey.
2013-01-13 11:56:06 +01:00
Allan Odgaard
bccaee4be6 Simplify document open API
Removed the ability to specify wether documents should open in current window or a new window — all documents opened via this API will go through the same algorithm to find where the documents should end up (more choice is just adding confusion and complexity).
2013-01-10 06:46:44 +01:00
Allan Odgaard
d96dbc4269 Clicking a ‘find all’ result would be handled twice
Normally this wouldn’t be noticed, as the second action would do the same as the first (go to the result in the associated project window), but when there was no project window a new window opens (to show the result), and that would be done twice.

This fixes issue #281.

There is still an issue with successive selections for the “no project window” situation, as each time, a new window is opened, rather than reuse the first one that opened.
2013-01-08 22:48:07 +01:00
Allan Odgaard
9c35f445de Convert strings files to UTF-8 2013-01-02 01:46:48 +01:00
Allan Odgaard
47fa0f040c Use Objective-C literals for YES/NO 2013-01-02 01:46:48 +01:00
Allan Odgaard
c273b3d4fe Set Find and Go to Line dialogs to “join active space”
If user opens the dialog on one space, moves to another space (with a TextMate window) and then re-activate the (already open) dialog, it would previously switch back to the space containing the dialog, whereas with the changed setting, it now moves the dialog to the active space.

This should address issue #599.
2012-12-30 04:35:47 +01:00
Allan Odgaard
71be61cbbb Enable ARC by default
We now explicitly disable it for targets that hasn’t yet been upgraded to ARC. This way, it’s easier to get an overview of which targets hasn’t yet been upgraded and ensures new targets has ARC enabled.
2012-12-19 19:42:36 +01:00
Allan Odgaard
1eb54282af Move attr_string.h to Find framework 2012-12-19 19:42:35 +01:00
Allan Odgaard
921efb9f6e Don’t link with QuartzCore
This was originally done for CoreAnimation (which is no longer used).
2012-10-24 21:07:21 +07:00
Allan Odgaard
983bce86aa Use @autoreleasepool blocks 2012-09-25 12:30:12 +02:00
Rasmus Abrahamsen
ccc0b414bb Fix “replace selected” for Find All in document
Fixes issue #77.
2012-09-24 20:58:42 +02:00
Rasmus Abrahamsen
443421be84 Fix CRLF issue #409. 2012-09-24 20:58:41 +02:00
Allan Odgaard
9d97fdfdb0 Find in Folder: Add failing CRLF test 2012-09-24 20:58:41 +02:00
Allan Odgaard
0cea361b00 Explicit timer invalidation 2012-09-22 13:23:41 +02:00
Allan Odgaard
8fd7b82cbd Remove CocoaSTL.h include 2012-09-20 12:22:20 +02:00
Allan Odgaard
4273bf968b Get rid of C++ style NSIndexSet iteration 2012-09-20 12:22:19 +02:00
Allan Odgaard
6b42343bd3 Add missing include 2012-09-20 12:22:19 +02:00
Allan Odgaard
2ba66c5718 Add four flavors of copy to find in folder window
These actions are available from the settings / action menu in the status bar above the results.

Calling the regular copy (⌘C) copies the entire lines. Probably it should only copy the matching subset when a regular expression search has been performed.
2012-09-19 02:13:53 +02:00
Allan Odgaard
1fafbecd54 Remove Chinese translation
It’s not feasible to maintain the old-style xib translations while we work on the UI. We’ll soon move fully to constraint-based layout which should allow translations to be purely string-based.
2012-09-16 11:41:23 +02:00
Allan Odgaard
a14a13feff Update search and file chooser to new glob list 2012-09-12 18:30:36 +02:00
Allan Odgaard
4fc00f55e7 Update file scanner API to use glob_list_t 2012-09-12 18:30:36 +02:00
Allan Odgaard
6f2e6bb3e5 Don’t restore “search hidden folders” setting
This is only because of upcoming code changes. Wether or not to search hidden folders can be expressed using the glob list, so a dedicated setting is redundant.
2012-09-12 18:30:36 +02:00
Jacob Bandes-Storch
dfdde3283f Use 64-bit: explicit visibility where required 2012-08-28 21:32:47 +02:00
Jacob Bandes-Storch
b675c78909 Use libc++: avoid incomplete types where needed 2012-08-28 20:17:29 +02:00
Jacob Bandes-Storch
e3aa997b06 Use libc++: replace std::tr1 with std 2012-08-28 13:30:20 +02:00
Allan Odgaard
3c79f275f1 Use constants for settings keys 2012-08-23 17:15:12 +02:00
Jacob Bandes-Storch
a611fc213d Prevent horizontal scrolling of search results 2012-08-22 15:01:37 +02:00
Jacob Bandes-Storch
b24f2294fb Clean up find results view positioning
The left and right borders are no longer visible, so the results are flush with the edges of the find window.
2012-08-22 14:43:09 +02:00
Allan Odgaard
998eec410d View → Toggle Foldings now work for find results
This will expand/collapse the find results.

The benefit here is just having a key to quickly collapse all the results so that we get a list of files (with matches).
2012-08-20 22:57:52 +02:00
Paul Wilde
54b0d200af Retina assets for the "Find in Project" window 2012-08-19 21:13:25 +02:00
Allan Odgaard
d5d79d6c0c Find in Folder: ⌘1-n selects first match
Previously we would select the n’th file in the result list so one would have to then use arrow down to get to the first match of this file. Now we go directly to the first match in the file (unless the matches for the item is collapsed).
2012-08-18 15:30:24 +02:00
Bo Xiao
96cb899b53 Initial commit of Simplified Chinese localization for xib files. 2012-08-14 21:29:51 +02:00
Allan Odgaard
a92c7cda68 fixup! Stop using deprecated NSSavePanel/NSOpenPanel methods
Be careful not to initialize an NSURL from nil.
2012-08-12 22:23:52 +02:00
Bo Xiao
0e581cd2f6 Changed Find/Replace combobox height to 21, to be aligned with other controls. 2012-08-12 12:59:43 +02:00
jtbandes
0112532e64 Stop using deprecated NSSavePanel/NSOpenPanel methods 2012-08-12 12:59:43 +02:00
jtbandes
bf2fa756ce Fix xib warnings 2012-08-11 23:04:00 -07:00
jtbandes
ee11103d2d Change deployment target of all xibs to OS X 10.7 2012-08-11 23:04:00 -07:00
jtbandes
45b68389f2 Save all xibs with Xcode 4.4.1 (4F1003) 2012-08-11 23:04:00 -07:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00