Update aliases and vimrc
This commit is contained in:
parent
f636229f5c
commit
9b5159e705
19
.aliases
19
.aliases
|
@ -353,8 +353,9 @@ make_vid_dir_and_cd_into() {
|
|||
function my_transcribe_video() {
|
||||
file="$1"
|
||||
output="$2"
|
||||
include_small=$3
|
||||
if [[ $file == "" ]]; then
|
||||
printf "Usage: <input video> <optional output name>\n"
|
||||
error "Usage: <input video> <optional output name>"
|
||||
return
|
||||
fi
|
||||
if [[ $output == "" ]]; then
|
||||
|
@ -365,14 +366,18 @@ function my_transcribe_video() {
|
|||
# catches most words. Small and medium can do better word detection at
|
||||
# times, but suffer from bad punctuation. Medium is particularly bad and
|
||||
# not adding commas and periods.
|
||||
if [[ $include_small -eq 1 ]]; then
|
||||
transcribe-video "$file" "$output" tiny base small
|
||||
else
|
||||
transcribe-video "$file" "$output" tiny base
|
||||
fi
|
||||
}
|
||||
|
||||
function my_transcribe_video_all_models() {
|
||||
file="$1"
|
||||
output="$2"
|
||||
if [[ $file == "" ]]; then
|
||||
printf "Usage: <input video> <optional output name>\n"
|
||||
error "Usage: <input video> <optional output name>"
|
||||
return
|
||||
fi
|
||||
if [[ $output == "" ]]; then
|
||||
|
@ -544,6 +549,14 @@ download_youtube_uploads_list() {
|
|||
printf "${BOLD}Finished downloading the upload list\n${NORMAL}"
|
||||
}
|
||||
|
||||
function download_youtube_audio() {
|
||||
if [[ $1 == "" ]]; then
|
||||
error "Usage: <url>"
|
||||
return
|
||||
fi
|
||||
yt-dlp.exe -f "140" "$1"
|
||||
}
|
||||
|
||||
# Download Twitch chat transcript
|
||||
actually_download_twitch_chat() {
|
||||
local url="$1"
|
||||
|
@ -949,7 +962,7 @@ alias yt-playlist-list='download_youtube_playlist_list '
|
|||
alias yt-playlist-1080='download_youtube_playlist "137+140"'
|
||||
alias yt-playlist-720='download_youtube_playlist "136+140"'
|
||||
alias yt-playlist-tiny='download_youtube_playlist "160+140"'
|
||||
alias yt-audio='yt-dlp.exe -f "140"'
|
||||
alias yt-audio='download_youtube_audio'
|
||||
|
||||
#-------------------------------------------------
|
||||
# Twitch Vid DL
|
||||
|
|
2
.vimrc
2
.vimrc
|
@ -656,7 +656,7 @@ vnoremap p "_dP
|
|||
|
||||
" Switch between C++ source and header files.
|
||||
noremap <leader>v :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR>
|
||||
"noremap <leader>vv :e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c,<CR>
|
||||
noremap <leader>vv :e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c,<CR>
|
||||
"noremap <leader>vvv :e %:p:s,.h$,.X123X,:s,.cc$,.h,:s,.X123X$,.cc,<CR>
|
||||
|
||||
" Replace all instances of the highlighted text with whatever you enter.
|
||||
|
|
Loading…
Reference in New Issue
Block a user