- -g PRINT FILENAMES match PATTERN
- -G ONLY SEARCH files whose name match PATTERN
- -l Only print the names of files containing matches
ag -G .m 'AGInstallGuideWebViewController'
- -v exclude pattern
- Examples:
- ag --group ""http" --ignore "*.md|AGLinkConstants.h"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set autoupdategist | |
set noautofocus | |
set nocncpcompletion | |
set smoothscroll | |
set hud | |
set noregex | |
set noinsertmappings | |
set typelinkhints | |
set defaultnewtabpage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String { | |
var isAlphanumeric: Bool { | |
return !isEmpty && range(of: "[^a-zA-Z0-9]", options: .regularExpression) == nil | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` Swift | |
extension String { | |
func index(from: Int) -> Index { | |
return self.index(startIndex, offsetBy: from) | |
} | |
func substring(from: Int) -> String { | |
let fromIndex = index(from: from) | |
return substring(from: fromIndex) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma clang diagnostic push | |
#pragma ide diagnostic ignored "OverriddenTypeMismatch" | |
@property (nonatomic, strong) UIView <xxxx> *view; | |
#pragma clang diagnostic pop |