forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCommandHistoryEntry.h
More file actions
43 lines (29 loc) · 949 Bytes
/
Copy pathCommandHistoryEntry.h
File metadata and controls
43 lines (29 loc) · 949 Bytes
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
//
// CommandHistoryEntry.h
// iTerm
//
// Created by George Nachman on 1/19/14.
//
//
#import <Foundation/Foundation.h>
@class VT100RemoteHost;
@class VT100ScreenMark;
// Holds an instance of a command plus an array of individual uses of the command.
@interface CommandHistoryEntry : NSObject
// Full text of command.
@property(nonatomic, copy) NSString *command;
// Number of times used.
@property(nonatomic, assign) int uses;
// Time since reference date of last use.
@property(nonatomic, assign) NSTimeInterval lastUsed;
// Array of ComamndUse objects.
@property(nonatomic, readonly) NSMutableArray *useTimes;
// First character matched by current search.
@property(nonatomic, assign) int matchLocation;
+ (instancetype)commandHistoryEntry;
+ (instancetype)entryWithDictionary:(NSDictionary *)dict;
- (VT100ScreenMark *)lastMark;
// PWD at the time of the command
- (NSString *)lastDirectory;
- (NSDictionary *)dictionary;
@end