Source

OPML / OPML / OPMLDocument.m

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
//
//  OPMLDocument.m
//  OPML
//
//  Created by Ivan Vučica on 05.01.2012..
//  Copyright (c) 2012 Ivan Vučica. All rights reserved.
//

#import "OPMLDocument.h"
#import "OPMLOutline.h"
#import "OPMLOutline+ViewRelated.h"
#import "OPMLDocumentWindowController.h"
#import "OPMLInspectorController.h"
#import "OPMLOutlineXMLElement.h"
#import "OPMLAppDelegate.h"

NSString *OPMLDocument_DocumentDeactivateNotification = @"OPMLDocumentDeactivateNotification";
NSString *OPMLDocument_DocumentActivateNotification = @"OPMLDocumentActivateNotification";

@implementation OPMLDocument

- (id)init
{
    self = [super init];
    if (self) {
        // Create a blank OPML file
        [self setOutline:[[[OPMLOutline alloc] initWithBlankOutline] autorelease]];
        
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(outlineViewSelectionDidChange:) name:NSOutlineViewSelectionDidChangeNotification object:_outlineView];
    }
    return self;
}
- (void)dealloc
{
    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSOutlineViewSelectionDidChangeNotification object:_outlineView];
    _outlineView = nil;
    [self setOutline:nil];
    [super dealloc];
}

- (NSString *)windowNibName
{
    // Override returning the nib file name of the document
    // If you need to use a subclass of NSWindowController or if your document supports multiple NSWindowControllers, you should remove this method and override -makeWindowControllers instead.
    return @"OPMLDocument";
}
#if !GNUSTEP
- (void)makeWindowControllers
{
    OPMLDocumentWindowController * windowController = [[[OPMLDocumentWindowController alloc] initWithWindowNibName:[self windowNibName] owner:self] autorelease];
    [windowController setShouldCascadeWindows:NO];
    [self addWindowController:windowController];
    
}
#else
#warning Disabled OPMLDocumentWindowController under GNUstep. Window may get cascaded!
#endif

- (void)windowControllerDidLoadNib:(NSWindowController *)aController
{
    [super windowControllerDidLoadNib:aController];
    
    // Link outline view with its data source
    [_outlineView setDataSource:_outline];
    [_outlineView setDelegate:_outline];
    [_outlineView reloadData];
    
    // Update window frame
    NSRect newFrame = [[aController window] frameRectForContentRect:[_outline windowContentFrame]];

    if(newFrame.size.width < 300) newFrame.size.width = 300;
    if(newFrame.size.height < 200) newFrame.size.height = 200;
    float screenHeight = [[[aController window] screen] frame].size.height;
    newFrame = NSMakeRect(newFrame.origin.x, 
                          (screenHeight - newFrame.origin.y - newFrame.size.height + [[NSApp mainMenu] menuBarHeight]), 
                          newFrame.size.width, 
                          newFrame.size.height);
    [[aController window] setFrame:newFrame display:YES];
    
    // Show opml inspector
    [[OPMLInspectorController sharedInspector] show];
    
    // Restore outline state
    [self expandUsingExpansionState];
    [self scrollUsingVertScrollState];
    
    // Allow dropping of nodes into node list
    [_outlineView registerForDraggedTypes:[NSArray arrayWithObjects:OPMLOutline_NodeDragAndDropPboardType, nil]];
    
    /*
    NSWindow * window = [[[self windowControllers] objectAtIndex:0] window];
    NSText * fe = [window fieldEditor:YES forObject:nil];
    [fe setDelegate:self];
     */
}

+ (BOOL)autosavesInPlace
{
    return YES;
}

#pragma mark -
#pragma mark Methods

-(void)applyCurrentWindowFrameOfController:(NSWindowController*)aController
{
    NSRect newFrame = [[aController window] contentRectForFrameRect:[[aController window] frame]];
    
    float screenHeight = [[[aController window] screen] frame].size.height;
    newFrame = NSMakeRect(newFrame.origin.x, 
                          (screenHeight - newFrame.origin.y - newFrame.size.height), 
                          newFrame.size.width, 
                          newFrame.size.height);
    
    
    [_outline setWindowContentFrame:newFrame];
    
    NSLog(@"New frame: %g %g %g %g", newFrame.origin.x, newFrame.origin.y, newFrame.size.width, newFrame.size.height);
}
-(void)applyCurrentDateOfModification
{
    [_outline applyCurrentDateOfModification];
}

-(void)expandUsingExpansionState
{
    //for(NSString * indexString in [_outline expansionState])
    NSEnumerator *e = [[_outline expansionState] objectEnumerator];
    for(NSString * indexString = [e nextObject]; indexString; indexString = [e nextObject])
    {
        int index = [indexString intValue]-1;
        
        id item = [_outlineView itemAtRow:index];
        [_outlineView expandItem:item];
    }
}
-(void)applyCurrentExpansionState
{
    NSMutableArray * expandedItems = [NSMutableArray array];
    for(int i = 0; i < [_outlineView numberOfRows]; i++)
    {
        if([_outlineView isItemExpanded:[_outlineView itemAtRow:i]])
        {
            NSString * rowString = [NSString stringWithFormat:@"%d", i+1];
            [expandedItems addObject:rowString];
        }
    }
    [_outline setExpansionState:expandedItems];
}

-(void)scrollUsingVertScrollState
{
    
    NSSize oldSize = [_outlineScrollView frame].size;
    [_outlineScrollView setFrameSize:NSMakeSize([_outlineScrollView frame].size.width, 17)];
    
    NSString * vertScrollString = [_outline documentAttributeValueForKey:@"vertScrollState"];
    int index = [vertScrollString intValue]-1;
    
    [_outlineView scrollRowToVisible:index];
    
    // allow a refresh to occur
    [[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]];

    [_outlineScrollView setFrameSize:oldSize];
    
}
- (void)applyCurrentVertScrollState
{
    NSInteger topRow = [_outlineView rowAtPoint:NSMakePoint(0, [_outlineView visibleRect].origin.y)];
    if (topRow < 0)
        topRow = 0;
    NSString * topRowString = [NSString stringWithFormat:@"%d", topRow+1];
    [_outline setDocumentAttributeValue:topRowString forKey:@"vertScrollState"];
}

#pragma mark -
#pragma mark Undo helpers

- (void)undoableRemovalOfNode:(OPMLOutlineXMLElement*)node
{
    [[self undoManager] beginUndoGrouping];
    //    [[[self undoManager] prepareWithInvocationTarget:[node parent]] insertChild:node atIndex:[node index]];
    [[[self undoManager] prepareWithInvocationTarget:self] undoableInsertionOfNode:node intoParent:(OPMLOutlineXMLElement*)[node parent] atIndex:[node index]];
    [[[self undoManager] prepareWithInvocationTarget:self] setSelectedElement:[self selectedElement]];
    [[self undoManager] endUndoGrouping];
    
    [node removeFromSupernode];
    
    [self applyCurrentExpansionState];
    [_outlineView reloadData];
    [_outlineView collapseItem:nil collapseChildren:YES];
    [self expandUsingExpansionState];
}
- (void)undoableInsertionOfNode:(OPMLOutlineXMLElement*)node intoParent:(OPMLOutlineXMLElement*)parent atIndex:(NSInteger)index
{
    [[self undoManager] beginUndoGrouping];
    [[[self undoManager] prepareWithInvocationTarget:self] undoableRemovalOfNode:node];
    [[[self undoManager] prepareWithInvocationTarget:self] setSelectedElement:[self selectedElement]];
    [[self undoManager] endUndoGrouping];
    
    [parent insertChild:node atIndex:index];
    
    [self applyCurrentExpansionState];
    [_outlineView reloadData];
    [_outlineView collapseItem:nil collapseChildren:YES];
    [self expandUsingExpansionState];
}

#pragma mark -
#pragma mark Local file handling

- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
{
    /*
     Insert code here to write your document to data of the specified type. If outError != NULL, ensure that you create and set an appropriate error when returning nil.
    You can also choose to override -fileWrapperOfType:error:, -writeToURL:ofType:error:, or -writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead.
    */
    [self applyCurrentDateOfModification];
    [self applyCurrentWindowFrameOfController:[[self windowControllers] objectAtIndex:0]];
    [self applyCurrentExpansionState];
    [self applyCurrentVertScrollState];
    return [_outline XMLData];
    NSException *exception = [NSException exceptionWithName:@"UnimplementedMethod" reason:[NSString stringWithFormat:@"%@ is unimplemented", NSStringFromSelector(_cmd)] userInfo:nil];
    @throw exception;
    return nil;
}

- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError
{
    /*
    Insert code here to read your document from the given data of the specified type. If outError != NULL, ensure that you create and set an appropriate error when returning NO.
    You can also choose to override -readFromFileWrapper:ofType:error: or -readFromURL:ofType:error: instead.
    */
    
    /*
    NSException *exception = [NSException exceptionWithName:@"UnimplementedMethod" reason:[NSString stringWithFormat:@"%@ is unimplemented", NSStringFromSelector(_cmd)] userInfo:nil];
    @throw exception;
     */
    /////////
    
    [[self undoManager] disableUndoRegistration];
    
    NS_DURING
    OPMLOutline * outline = [[[OPMLOutline alloc] initWithOPMLData:data error:outError] autorelease];
    if(!outline)
    {
        NSLog(@"Failed to load opml");
        [[self undoManager] enableUndoRegistration];
        return NO;
    }
    NSLog(@"Successfully loaded opml");
    [self setOutline:outline];
    [[self undoManager] enableUndoRegistration];
    return YES;
    //////////
    NS_HANDLER
    
    NSLog(@"Exception loading opml");
    if(outError)
    {
        NSDictionary * desc;
        desc = [NSDictionary dictionaryWithObjectsAndKeys:
                
                NSLocalizedString(@"Exception while loading OPML", @"Text for error while loading an OPML file."), 
                NSLocalizedFailureReasonErrorKey,
                
                NSLocalizedString(@"Exception while loading OPML may be caused either by an invalid OPML or by an internal issue in the editor.", @"Recovery suggestion for an error while loading an OPML file."),
                NSLocalizedRecoverySuggestionErrorKey,
                
                nil];
        *outError = [NSError errorWithDomain:@"temporary_opml_domain___FIXMEFIXME"
                                        code:13371337
                                    userInfo:desc];
        
    }
    [[self undoManager] enableUndoRegistration];
    return NO;
    NS_ENDHANDLER;
}

// MARK: -
// MARK: Remote file handling

-(BOOL)writeSafelyToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation error:(NSError **)outError
{
    NS_DURING
    // Local files
    return [super writeSafelyToURL:absoluteURL ofType:typeName forSaveOperation:saveOperation error:outError];
    NS_HANDLER
    // Remote files
    return NO;
    NS_ENDHANDLER
}

-(BOOL)readFromURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError
{
    NS_DURING
    // Local files
    return [super readFromURL:absoluteURL ofType:typeName error:outError];
    NS_HANDLER
    // Remote files
    NSData * data = [NSData dataWithContentsOfURL:absoluteURL];
    return [self readFromData:data ofType:typeName error:outError];
    NS_ENDHANDLER
}

// MARK: -
// MARK: IBActions
- (IBAction) showInspector: (id) sender
{
    [[OPMLInspectorController sharedInspector] show];
} // showInspector

- (IBAction)addNode:(id)sender 
{
    OPMLOutlineXMLElement * selectedElement = [self selectedElement];
    
    // if selected element is nil, then it's ok: we'll
    // be creating a child node of the body element.
    
    OPMLOutlineXMLElement * newItem = nil;
    if([_outlineView isItemExpanded:selectedElement])
    {
        // create a child node
        newItem = [_outline insertNewChildNodeOf:selectedElement];
    }
    else
    {
        // create a sibling node
        newItem = [_outline insertNewSiblingNodeOf:selectedElement];
    }
    
    [[self undoManager] beginUndoGrouping];
    [[[self undoManager] prepareWithInvocationTarget:self] undoableRemovalOfNode:newItem];
    [[[self undoManager] prepareWithInvocationTarget:self] setSelectedElement:[self selectedElement]];
    [[self undoManager] endUndoGrouping];
     
    [self applyCurrentExpansionState];
    [_outlineView reloadData];
    [_outlineView collapseItem:nil collapseChildren:YES];
    [self expandUsingExpansionState];
    
    NSInteger index = [_outlineView rowForItem:newItem];
    [_outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:index] byExtendingSelection:NO];
} // addNode

- (IBAction)removeNode:(id)sender 
{
    OPMLOutlineXMLElement * selectedElement = [self selectedElement];
    if(!selectedElement)
        return;
    
    [self undoableRemovalOfNode:selectedElement];
    
    [self applyCurrentExpansionState];
    [_outlineView reloadData];
    [_outlineView collapseItem:nil collapseChildren:YES];
    [self expandUsingExpansionState];
} // removeNode

- (IBAction)switchNodeType:(NSMenuItem*)sender
{
    OPMLOutlineXMLElement * selectedElement = [self selectedElement];
    if(!selectedElement)
        return;
    
    OPMLAppDelegate * delegate = [NSApp delegate];
    [delegate switchNodeTypeCheckedInMenu:[sender tag]];
    [selectedElement setElementType:[sender tag]];
    [[OPMLInspectorController sharedInspector] loadStuffFromElement];
} // switchNodeType

- (IBAction)increaseIndent:(id)sender
{
    OPMLOutlineXMLElement * selectedElement = [self selectedElement];
    OPMLOutlineXMLElement * parentElement = (OPMLOutlineXMLElement*)[selectedElement parent];
    OPMLOutlineXMLElement * newParentElement = (OPMLOutlineXMLElement*)[parentElement childAtIndex:[selectedElement index]-1];
    if(!selectedElement || !parentElement || !newParentElement)
    {
        NSBeep();
        return;
    }
    if(parentElement == [_outline rootElement] || newParentElement == [_outline rootElement])
    {
        NSBeep();
        return;
    }
    
    [selectedElement retain];
    
    NSInteger originalIndex = [selectedElement index];
    [parentElement removeChildAtIndex:[selectedElement index]];
    [newParentElement insertChild:selectedElement atIndex:[newParentElement childCount]];
    
    [[self undoManager] beginUndoGrouping];
    [[self undoManager] setActionName:@"Increase Indent"];
    [[[self undoManager] prepareWithInvocationTarget:selectedElement] retain];
    [[[self undoManager] prepareWithInvocationTarget:parentElement] insertChild:selectedElement atIndex:originalIndex];
    [[[self undoManager] prepareWithInvocationTarget:selectedElement] removeFromSupernode];
    [[[self undoManager] prepareWithInvocationTarget:selectedElement] release];
    [[[self undoManager] prepareWithInvocationTarget:_outlineView] reloadData];
    [[self undoManager] endUndoGrouping];
    
    [selectedElement release];
    
    NSIndexSet * selectedRowIndexes = [_outlineView selectedRowIndexes];
    [self applyCurrentExpansionState];
    [_outlineView reloadData];
    [self expandUsingExpansionState];
    [_outlineView expandItem:newParentElement];
    [_outlineView selectRowIndexes:selectedRowIndexes byExtendingSelection:NO];
} // increaseIndent

- (IBAction)decreaseIndent:(id)sender
{
    OPMLOutlineXMLElement * selectedElement = [self selectedElement];
    OPMLOutlineXMLElement * parentElement = (OPMLOutlineXMLElement*)[selectedElement parent];
    OPMLOutlineXMLElement * newParentElement = (OPMLOutlineXMLElement*)[parentElement parent];
    if(!selectedElement || !parentElement || !newParentElement)
    {
        NSBeep();
        return;
    }
    if(parentElement == [_outline rootElement] || newParentElement == [_outline rootElement])
    {
        NSBeep();
        return;
    }
    
    [selectedElement retain];
    
    NSInteger originalIndex = [selectedElement index];
    [parentElement removeChildAtIndex:[selectedElement index]];
    [newParentElement insertChild:selectedElement atIndex:[parentElement index]+1];
    
    [[self undoManager] beginUndoGrouping];
    [[self undoManager] setActionName:@"Decrease Indent"];
    [[[self undoManager] prepareWithInvocationTarget:selectedElement] retain];
    [[[self undoManager] prepareWithInvocationTarget:parentElement] insertChild:selectedElement atIndex:originalIndex];
    [[[self undoManager] prepareWithInvocationTarget:selectedElement] removeFromSupernode];
    [[[self undoManager] prepareWithInvocationTarget:selectedElement] release];
    [[[self undoManager] prepareWithInvocationTarget:_outlineView] reloadData];
    [[self undoManager] endUndoGrouping];
    
    [selectedElement release];
    
    NSIndexSet * selectedRowIndexes = [_outlineView selectedRowIndexes];
    [self applyCurrentExpansionState];
    [_outlineView reloadData];
    [self expandUsingExpansionState];
    [_outlineView expandItem:newParentElement];
    [_outlineView selectRowIndexes:selectedRowIndexes byExtendingSelection:NO];
} // decreaseIndent

// MARK: -
// MARK: Window notifications
- (void) postNotification: (NSString *) notificationName
{
    NSNotificationCenter *center;
    center = [NSNotificationCenter defaultCenter];
    
    [center postNotificationName: notificationName
                          object: self];
    
} // postNotification


- (void) windowDidBecomeMain: (NSNotification *) notification
{
    [self postNotification: 
     OPMLDocument_DocumentActivateNotification];
    
} // windowDidBecomeMain


- (void) windowDidResignMain: (NSNotification *) notification
{
    [self postNotification: 
     OPMLDocument_DocumentDeactivateNotification];
    
} // windowDidResignMain


- (void) windowWillClose: (NSNotification *) notification
{
    [self postNotification: 
     OPMLDocument_DocumentDeactivateNotification];
    
} // windowDidClose

- (void) windowDidResize:(NSNotification *)notification
{
    /*
    [_outlineView reloadData];
    [_outlineView reloadData];
     */
#if !GNUSTEP
    [NSAnimationContext beginGrouping];
    [[NSAnimationContext currentContext] setDuration:0];
#endif
    [_outlineView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [_outlineView numberOfRows])]];
#if !GNUSTEP    
    [NSAnimationContext endGrouping];
#endif
} // windowDidResize

// MARK: -
// MARK: Properties

-(OPMLOutline*)outline
{
    return _outline;
}
-(void)setOutline:(OPMLOutline *)outline
{
    if(outline == _outline)
        return;
    
    id oldOutline = _outline;
    [outline retain];
    _outline = outline;
    
    [_outline setUndoManager:[self undoManager]];
    
    [_outlineView setDelegate:_outline];
    [_outlineView setDataSource:_outline];
    [_outlineView reloadData];
    
    [[NSNotificationCenter defaultCenter] removeObserver:self name:kOPMLOutlineInclusionLoadingBeganNotification object:oldOutline];
    [[NSNotificationCenter defaultCenter] removeObserver:self name:kOPMLOutlineInclusionLoadingEndedNotification object:oldOutline];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(outlineInclusionLoadingBegan:) name:kOPMLOutlineInclusionLoadingBeganNotification object:_outline];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(outlineInclusionLoadingEnded:) name:kOPMLOutlineInclusionLoadingEndedNotification object:_outline];
    
    [oldOutline release];
}

// MARK: -
// MARK: Dynamic properties
- (OPMLOutlineXMLElement*)selectedElement
{
    if([_outlineView selectedRow] >= 0 &&
       [_outlineView selectedRow] < [_outlineView numberOfRows])
        return [_outlineView itemAtRow:[_outlineView selectedRow]];
    else
        return nil;
}
- (void)setSelectedElement:(OPMLOutlineXMLElement*)selectedElement
{
    NSInteger row = [_outlineView rowForItem:selectedElement];
    if(row != -1)
    {
        NSIndexSet * indexSet = [NSIndexSet indexSetWithIndex:row];
        [_outlineView selectRowIndexes:indexSet byExtendingSelection:NO];
    }
}
// MARK: -
// MARK: Notification handling

- (void)outlineInclusionLoadingBegan:(NSNotification*)aNote
{
    [_statusProgress startAnimation:nil];
    [_statusLabel setStringValue:@"Loading an OPML inclusion..."];
    [[NSRunLoop currentRunLoop] runUntilDate:[NSDate distantPast]]; // refresh ui
}
- (void)outlineInclusionLoadingEnded:(NSNotification*)aNote
{
    [_statusProgress stopAnimation:nil];
    [_statusLabel setStringValue:@"Ready"];

}

- (void)outlineViewSelectionDidChange:(NSNotification *)notification
{
    if([[OPMLInspectorController sharedInspector] document] == self)
    {
        [[OPMLInspectorController sharedInspector] loadStuffFromElement];
    }
}


@end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.