start new:
tmux
start new with session name:
tmux new -s myname
import SwiftUI | |
private let linkDetector = try! NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue) | |
struct LinkColoredText: View { | |
enum Component { | |
case text(String) | |
case link(String, URL) | |
} |
There's a couple of ways, one way is
SPC /
and type in your search stringSPC x S
and search string - where x is your scope indicator (p for project, d for directory, etc..)C-c C-e
inside the helm buffer to put all your match occurences and puts them into a special buffer called the edit buffer or something like thatC-c C-c
to commit your changes.# ag <https://github.com/ggreer/the_silver_searcher> | |
# usage: ag-replace.sh [search] [replace] | |
# caveats: will choke if either arguments contain a forward slash | |
# notes: will back up changed files to *.bak files | |
ag -l $1 | xargs perl -pi.bak -e "s/$1/$2/g" | |
# or if you prefer sed's regex syntax: | |
ag -l $1 | xargs sed -ri.bak -e "s/$1/$2/g" |
/** | |
* A collection of authentication and account connection utilities. With strong inspiration from the Google IO session | |
* app. | |
* @author Dandré Allison | |
*/ | |
public class AccountUtils { | |
/** | |
* Interface for interacting with the result of {@link AccountUtils#getUserProfile}. | |
*/ |
*.csproj -text merge=union | |
*.sln -text merge=union |
find . -type f | awk -F'.' '{print $NF}' | sort| uniq -c | sort -g |