add aliases for keyboard layouts

This commit is contained in:
Jonathan Hodgson 2019-01-22 08:28:15 +00:00
parent 8c3a3e9462
commit 52b8328a78
2 changed files with 15 additions and 4 deletions

View file

@ -276,17 +276,25 @@ function debugToggle(){
#These search functions use grep to search all sub-folders of the current working directory
searchjs() {
# This will search through .js and .es6 files but won't search minified files
grep -r -i -n --color="always" --include=\*.{js,es6} --exclude=\*.min.js "$1" .
grep -r -i -n --color="always" --include=\*.{js,es6} --exclude=\*.min.js "$1" . | tee /tmp/lastSearch
}
searchcss() {
# This will search through .css and .less files but won't search minified files
grep -r -i -n --color="always" --include=\*.{css,less,scss,sass} --exclude=\*.min.css "$1" .
grep -r -i -n --color="always" --include=\*.{css,less,scss,sass} --exclude=\*.min.css "$1" . | tee /tmp/lastSearch
}
searchphp() {
grep -r -i -n --color="always" --include=\*.{php,phtml} "$1" .
grep -r -i -n --color="always" --include=\*.{php,phtml} "$1" . | tee /tmp/lastSearch
}
searchhtml() {
grep -r -i -n --color="always" --include=\*.{html,htm} "$1" .
grep -r -i -n --color="always" --include=\*.{html,htm} "$1" . | tee /tmp/lastSearch
}
ops() {
responce=$(cat /tmp/lastSearch | slmenu -b -l $(tput lines) | sed 's/\x1B\[[0-9;]\+[A-Za-z]//g')
echo "responce"
file=$(echo "$responce" | awk -F ':' '{print $1}')
line=$(echo "$responce" | awk -F ':' '{print $2}')
vim +${line} ${file}
}
png() {