Ronald Wampler
d60c47ef42
Commit button title summarizes the number of files to be committed
2014-08-28 13:40:24 +02:00
Ronald Wampler
0361afe340
Rework the commit window as a sheet (document modal)
...
Previously, the commit window was changed from a "always on top" window to a more typical window that could be minimized or sent to the background. While this made viewing the diffs more convenient, we could easily loose track of it or at worst end up with multiple dangling commit windows. By making it document modal, this prevents dangling windows. Furthermore, since the commit window is now attached to the main project window and the file browser already has the SCM status, we hide the file list by default and dropped the action button. Users can choose to show the file list via a checkbox and the action button's menu is still available via the file list's context menu.
2014-08-28 13:40:24 +02:00
Ronald Wampler
4b31a3fde0
Send diffs to a separate window
2014-08-28 10:16:25 +02:00
Allan Odgaard
542158c9f0
Inherit project folder when moving document to new window
...
This only happens if the document being moved is a child of the project folder.
2014-08-27 12:48:40 +02:00
Allan Odgaard
5a45023f9e
Add new method to Find class: ‘takeSearchResultToRemoveFrom:’
...
This can be used after a completed search to prune the results. Currently though no UI is connected to this action.
2014-08-27 09:26:56 +02:00
Allan Odgaard
7262dd9d27
Switch search results to a view-based outline view
...
Currently does not support dragging of the file icon nor does it show number of matches in a single file when results are collapsed.
2014-08-27 09:14:10 +02:00
Allan Odgaard
23261fe293
Use reloadDataForRowIndexes:columnIndexes: instead of reloadData:
...
This is mainly in preparation of switching to a view-based table view where reloadData: loses the selection (and recreates all table row views).
2014-08-27 09:12:01 +02:00
Allan Odgaard
75ae3cd52d
Use bindings to track count of leafs and excluded leafs
2014-08-27 09:12:01 +02:00
Allan Odgaard
e098611387
Use the correct selected text color (for lists)
2014-08-27 09:12:01 +02:00
Allan Odgaard
0ff652d5c9
Introduce semantic convenience getters
2014-08-27 09:12:01 +02:00
Allan Odgaard
ff99f06647
Provide base directory when creating FFResultNode group nodes
2014-08-27 09:12:01 +02:00
Allan Odgaard
cebb90b6c8
Remove implementation details from Find singleton’s interface
2014-08-27 09:12:01 +02:00
Allan Odgaard
44358ad034
Rename FFResultNode property: ‘exclude’ → ‘excluded’
2014-08-27 09:12:01 +02:00
Allan Odgaard
1ee217adc6
Rename FFResultNode property: ‘matches’ → ‘children’
2014-08-27 09:11:58 +02:00
Allan Odgaard
860a6aa546
Let FFResultNode tree track count of leafs and excluded leafs
2014-08-27 09:10:44 +02:00
Allan Odgaard
c27082a5f6
Fix zero row height for empty match ranges
2014-08-27 09:09:00 +02:00
Allan Odgaard
0bb7acfbf3
Add ‘removeFromParent’ to FFResultNode
2014-08-24 12:12:24 +02:00
Allan Odgaard
f781fe0f98
Show checkmark in bundle item chooser for selected menu items
2014-08-24 12:12:24 +02:00
Allan Odgaard
bb41b55d16
Remove folder_scan_settings_t (API simplification)
2014-08-24 12:12:24 +02:00
Allan Odgaard
7a1be3ebd0
Using globs in file chooser now defaults to case-insensitive
2014-08-24 12:12:24 +02:00
Allan Odgaard
5d72c8a2c5
Support case-insensitive glob matching
2014-08-24 12:12:24 +02:00
Allan Odgaard
93e14c6a15
Update includes
2014-08-24 12:12:23 +02:00
Allan Odgaard
89e395df44
Abort search when closing find dialog
2014-08-24 12:12:23 +02:00
Allan Odgaard
d2072145c6
Use system images for the “shell support installed” indicator
2014-08-23 17:45:22 +02:00
Allan Odgaard
aa27ccced5
Move some logic to the FFResultNode type
2014-08-23 17:45:22 +02:00
Allan Odgaard
846c220b6b
Exclude line after match from excerpt when match ends with LF
2014-08-23 17:45:22 +02:00
Allan Odgaard
40ab59447c
Move convenience functions from FFMatch → FFResultNode
2014-08-23 17:45:22 +02:00
Allan Odgaard
e6185fd5a1
Move select next/previous tab/result out of window controller
2014-08-23 17:45:22 +02:00
Allan Odgaard
871a0df11a
Introduce showResultNode: convenience method
2014-08-23 17:45:21 +02:00
Allan Odgaard
54ac376825
Change terminology: ‘Match’ → ‘ResultNode’
2014-08-23 17:45:21 +02:00
Allan Odgaard
180f21d7aa
Add first/last match convenience methods to FFResultNode
2014-08-23 17:45:21 +02:00
Allan Odgaard
87dcaf93ec
Iterate all search results using a single for-loop
2014-08-23 17:45:21 +02:00
Allan Odgaard
f855739d33
Use FFResultNode objects as the ‘Go To’ menu’s representedObject
2014-08-23 17:45:21 +02:00
Allan Odgaard
2f6370f4b0
Use a FFResultNode object to contain top-level results
2014-08-23 17:45:21 +02:00
Allan Odgaard
1cabec256c
Use custom type for search results to get better type checking
...
This also makes it easy to have next/previous/parent (weak) pointers for better traversing.
2014-08-23 17:45:21 +02:00
Boris Dušek
afb504b58d
Do not use macros for accessibility constants
...
This improves the chance that someone googling for a certain accessibility
attribute or other accessibility constant in order to find inspiration how to
implement it will find our code in OakTextView. It also makes the code more
understandable for reading by someone else, and generally follows the way
others write accessibility code (including Apple in their code samples). It
does make the code more verbose, but I think that does not outweight the above
advantages.
Inspired by: googling and "githubbing" for NSAccessibilityLinkTextAttribute:
http://lists.apple.com/archives/accessibility-dev/2014/Aug/msg00016.html
2014-08-23 17:45:20 +02:00
Allan Odgaard
87f2c07fbc
With no file browser or project folder we try document’s folder
...
This is for the “untitled save path” which is normally used for new untitled files, so we wouldn’t actually have a folder, however, the property is also used as a fallback for a “project folder” when that property is unset (which it generally shouldn’t be).
2014-08-22 15:54:30 +02:00
Allan Odgaard
881b83cb50
Setup project folder after saving single untitled document
2014-08-22 15:38:21 +02:00
Allan Odgaard
34965c230d
Find All for single document: Fix absolute path in search results
2014-08-22 14:58:44 +02:00
Allan Odgaard
bf81caa448
Fix titlecase menu item to say “Line” instead of “Word”
2014-08-22 14:33:02 +02:00
Allan Odgaard
94165739fb
Improve capitalization heuristic
...
See added/updated tests for details.
2014-08-22 14:29:16 +02:00
Allan Odgaard
b0d57705cf
Make encoding part of the document_t::reader_t API
2014-08-22 09:35:30 +02:00
Allan Odgaard
b1b0ffda58
Add ‘charset’ property to FFFilePathCell
...
This is really just a right-aligned label, but we might later change how it’s drawn.
2014-08-22 09:33:41 +02:00
Allan Odgaard
6646a14da1
Use alternate status string to show how many bytes were searched
2014-08-21 17:40:20 +02:00
Allan Odgaard
4b521541d7
Support alternate status string in find dialog window
...
The alternate string is shown after the user clicks the status bar.
2014-08-21 17:39:13 +02:00
Allan Odgaard
63f8400cc4
Allow specifying an NSTextField subclass when creating labels
2014-08-21 17:37:04 +02:00
Allan Odgaard
50d3a584c9
Track how many bytes we search
2014-08-21 17:36:16 +02:00
Allan Odgaard
4a2a3997cc
Update API of find::scan_path_t
2014-08-21 16:50:05 +02:00
Allan Odgaard
2f1c4c05c4
Do not use ‘timeIntervalSinceNow’ with dates in the past
...
We previously negated the result but now we instead ask for [[NSDate date] timeIntervalSinceDate:startDate].
2014-08-21 16:07:23 +02:00
Allan Odgaard
a06554b638
Minor update of FFDocumentSearch’s instance data usage
...
Prior to this commit the ‘searchDuration’ property would actually return seconds since we last started a search, rather than how long the last search took.
2014-08-21 16:07:23 +02:00