mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: support Finder Tag - step 16: the editing text that is exactly the same as the token can be retained in the filter list
This commit is contained in:
parent
f32ab111d6
commit
fc6c26f151
1 changed files with 7 additions and 2 deletions
|
|
@ -717,10 +717,15 @@ end;
|
|||
procedure TFinderTagsEditorPanel.updateFilter( substring: NSString );
|
||||
var
|
||||
tagName: NSString;
|
||||
usedTagNames: NSArray;
|
||||
usedTagNames: NSMutableArray;
|
||||
editingRange: NSRange;
|
||||
begin
|
||||
_filterTagNames.removeAllObjects;
|
||||
usedTagNames:= _tagsTokenField.objectValue;
|
||||
usedTagNames:= NSMutableArray.arrayWithArray( _tagsTokenField.objectValue );
|
||||
editingRange:= _tagsTokenField.editingStringRange;
|
||||
if editingRange.length > 0 then
|
||||
usedTagNames.removeObjectAtIndex( editingRange.location );
|
||||
|
||||
for tagName in TFinderTags._tags do begin
|
||||
if (substring.length>0) and (NOT tagName.containsString(substring)) then
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue