#!/bin/bash

#IDE="vim"
#IDE="nvim"
IDE="/home/public/nvim.appimage"
#IDE="code"

if [ -z $1 ]
then

			echo ""
			echo "usage: vib [admin|agenda|atcserver|atcsim|flipdev|localtdsdev|qtatcsim]"
			echo ""
			echo "ex: './vib admin'"
			echo ""

else

			for param in "$@"
			do

						if [ $param = "admin" ]
						then
									cd ~ && $IDE .nvim_history .bashrc .vimrc .config/nvim/*.* .config/nvim/lua/ben/*.* .config/nvim2/*.* .config/nvim2/lua/theprimeagen/*.* .config/nvim2/plugin/*.* .config/nvim2/after/plugin/*.* Secure/ben/linux/raspbian/Mémo.raspbian.txt Secure/ben/linux/kimsufi/Mémo.kimsufi.txt Secure/ben/linux/debian/packages_list.txt Secure/ben/linux/debian/Mémo.debian.txt Secure/ben/linux/vim/Mémo.vim.txt Secure/ben/linux/debian/benports/ben-utils/benvol+ Secure/ben/linux/debian/benports/ben-utils/benvol- vib benrsync benmountsecure benmountsecuresmb benmountbackup phplint bluetoothinputswitch
						fi

						if [ $param = "agenda" ]
						then
									agenda=Kgenda
									cd ~/Secure/ben/linux/android/workspace/$agenda/app/src/main/java/fr/loloetben/kgenda && $IDE ~/Secure/ben/linux/android/workspace/$agenda/*.* ~/Secure/ben/linux/android/workspace/$agenda/app/*.* ~/Secure/ben/linux/android/workspace/$agenda/app/src/main/java/fr/loloetben/kgenda/*.* ~/Secure/ben/web/fr/loloetben/agenda/*.* ~/Secure/ben/web/fr/loloetben/agenda/tcpdf/examples/*.* ~/Secure/ben/web/fr/loloetben/upload.agenda.sh
						fi

						if [ $param = "qtatcsim" ]
						then
									cd ~/Secure/ben/linux/qt/ATCsim2 && $IDE ~/Secure/ben/linux/qt/ATCsim2/airway.cpp ~/Secure/ben/linux/qt/ATCsim2/alidade.h ~/Secure/ben/linux/qt/ATCsim2/alidade.cpp ~/Secure/ben/linux/qt/ATCsim2/customlistwidget.h ~/Secure/ben/linux/qt/ATCsim2/customlistwidget.cpp ~/Secure/ben/linux/qt/ATCsim2/customscene.h ~/Secure/ben/linux/qt/ATCsim2/customscene.cpp ~/Secure/ben/linux/qt/ATCsim2/customview.h ~/Secure/ben/linux/qt/ATCsim2/customview.cpp ~/Secure/ben/linux/qt/ATCsim2/flight.h ~/Secure/ben/linux/qt/ATCsim2/flight.cpp ~/Secure/ben/linux/qt/ATCsim2/flight2.h ~/Secure/ben/linux/qt/ATCsim2/flight2.cpp ~/Secure/ben/linux/qt/ATCsim2/flightgenerator.h ~/Secure/ben/linux/qt/ATCsim2/flightgenerator.cpp ~/Secure/ben/linux/qt/ATCsim2/info.h ~/Secure/ben/linux/qt/ATCsim2/info.cpp ~/Secure/ben/linux/qt/ATCsim2/label.h ~/Secure/ben/linux/qt/ATCsim2/label.cpp ~/Secure/ben/linux/qt/ATCsim2/label0.h ~/Secure/ben/linux/qt/ATCsim2/label0.cpp ~/Secure/ben/linux/qt/ATCsim2/labelfl.h ~/Secure/ben/linux/qt/ATCsim2/labelfl.cpp ~/Secure/ben/linux/qt/ATCsim2/labelwpt.h ~/Secure/ben/linux/qt/ATCsim2/labelwpt.cpp ~/Secure/ben/linux/qt/ATCsim2/mainwindow.h ~/Secure/ben/linux/qt/ATCsim2/mainwindow.cpp ~/Secure/ben/linux/qt/ATCsim2/oldflight.h ~/Secure/ben/linux/qt/ATCsim2/oldflight.cpp ~/Secure/ben/linux/qt/ATCsim2/oldplot.h ~/Secure/ben/linux/qt/ATCsim2/oldplot.cpp ~/Secure/ben/linux/qt/ATCsim2/plot.h ~/Secure/ben/linux/qt/ATCsim2/plot.cpp ~/Secure/ben/linux/qt/ATCsim2/plot0.h ~/Secure/ben/linux/qt/ATCsim2/plot0.cpp ~/Secure/ben/linux/qt/ATCsim2/plot1.h ~/Secure/ben/linux/qt/ATCsim2/plot1.cpp ~/Secure/ben/linux/qt/ATCsim2/plot2.h ~/Secure/ben/linux/qt/ATCsim2/plot2.cpp ~/Secure/ben/linux/qt/ATCsim2/plot3.h ~/Secure/ben/linux/qt/ATCsim2/plot3.cpp ~/Secure/ben/linux/qt/ATCsim2/plot4.h ~/Secure/ben/linux/qt/ATCsim2/plot4.cpp ~/Secure/ben/linux/qt/ATCsim2/plot5.h ~/Secure/ben/linux/qt/ATCsim2/plot5.cpp ~/Secure/ben/linux/qt/ATCsim2/plot6.h ~/Secure/ben/linux/qt/ATCsim2/plot6.cpp ~/Secure/ben/linux/qt/ATCsim2/radarplot.h ~/Secure/ben/linux/qt/ATCsim2/radarplot.cpp ~/Secure/ben/linux/qt/ATCsim2/sector.h ~/Secure/ben/linux/qt/ATCsim2/sector.cpp ~/Secure/ben/linux/qt/ATCsim2/simulator.h ~/Secure/ben/linux/qt/ATCsim2/simulator.cpp ~/Secure/ben/linux/qt/ATCsim2/utils.h ~/Secure/ben/linux/qt/ATCsim2/utils.cpp ~/Secure/ben/linux/qt/ATCsim2/waypoint.h ~/Secure/ben/linux/qt/ATCsim2/waypoint.cpp ~/Secure/ben/linux/qt/ATCsim2/ATCsim2.pro ~/Secure/ben/linux/qt/ATCsim2/Makefile ~/Secure/ben/linux/qt/ATCsim2/buildATCsim.sh
						fi

						#if [ $param = "sdlatcsim" ]
						#then
									#cd ~/Secure/ben/linux/sdl/ATCsim && $IDE ~/Secure/ben/linux/sdl/ATCsim/makefile ~/Secure/ben/linux/sdl/ATCsim/main.cpp
						#fi

						if [ $param = "atcsim" ]
						then
									cd ~/Dev/rust/atcsim && $IDE ~/Dev/rust/atcsim/Cargo.toml ~/Dev/rust/atcsim/src/*.*
						fi

						if [ $param = "atcserver" ]
						then
									cd ~/Dev/rust/atcserver && $IDE ~/Dev/rust/atcserver/Cargo.toml ~/Dev/rust/atcserver/src/*.*
						fi


						if [ $param = "goatcsim" ]
						then
									#cd ~/Dev/golang/atcsim && $IDE ./*/* /home/public/Secure/ben/FLiP/FLiPdev+sim/resources/app/*
									cd ~/Dev/golang/atcsim && $IDE ./*/*
						fi


						if [ $param = "localtdsdev" ]
						then
									#cd ~/public_html && GIT_DIR=/home/public/Secure/ben/web/net/lfrr/.git $IDE arch.txt admin.js client.css client.php config.php cron.php drawgrillemobile.js email.php equipe.js export.js fmp.php grille.js help.js index.php init.js login.js mtce.php .ovhconfig passwordcrypter.php path.php rempla.js remplas.php remplas.sh savedb.php server.php test.js autoutils.js timeutils.js utils.js utils2.js utils.php ~/public_html/tcpdf/examples/pdf.php ~/Secure/ben/web/net/lfrr/upload.tdsdev.sh ~/Secure/ben/web/net/lfrr/upload.tds.sh ~/Secure/ben/web/net/lfrr/localtdsdev.to.tdsdev.sh ~/Secure/ben/web/net/lfrr/tdsdev.to.tds.sh ~/Secure/ben/web/net/lfrr/update_localhost_bds.sh ~/Secure/ben/web/net/lfrr/.git/.gitignore
									#cd ~/public_html && GIT_DIR=/home/public/Secure/ben/web/net/lfrr/.git $IDE ./* ./*/* ~/public_html/tcpdf/examples/pdf.php ~/Secure/ben/web/net/lfrr/upload.tdsdev.sh ~/Secure/ben/web/net/lfrr/upload.tds.sh ~/Secure/ben/web/net/lfrr/localtdsdev.to.tdsdev.sh ~/Secure/ben/web/net/lfrr/tdsdev.to.tds.sh ~/Secure/ben/web/net/lfrr/update_localhost_bds.sh ~/Secure/ben/web/net/lfrr/.git/.gitignore
									cd ~/public_html && GIT_DIR=/home/public/Secure/ben/web/net/lfrr/.git $IDE ./* ./*/* ~/Secure/ben/web/net/lfrr/upload.tdsdev.sh ~/Secure/ben/web/net/lfrr/upload.tds.sh ~/Secure/ben/web/net/lfrr/localtdsdev.to.tdsdev.sh ~/Secure/ben/web/net/lfrr/tdsdev.to.tds.sh ~/Secure/ben/web/net/lfrr/update_localhost_bds.sh ~/Secure/ben/web/net/lfrr/remplas.sh ~/Secure/ben/web/net/lfrr/.git/.gitignore
						fi

						if [ $param = "flipdev" ]
						then
									cd ~/Secure/ben/FLiP/FLiPdev/resources/app && $IDE *.*
						fi

			done

fi
