diff --git a/tutos/computer.txt b/tutos/computer.txt index 1b3efa7..f597465 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -22,6 +22,27 @@ - launch pavucontrol (pulse audio volume controle) - choose the simultaneous output (this will also enable the computer speakers, so you might want to put them at 0) +**open .URL files :** + https://askubuntu.com/questions/353932/equivalent-of-url-file-on-ubuntu#353952 + - create a file (ex: 'open_url') in /usr/local/bin/ (or another bin directory located in $PATH) + - in this file : + ``` + #!/usr/bin/bash + if [ "$1" == "" ] || [ "$1" == "--help" ] ; then + echo "$(basename "$0") URLFILE - opens a .url file in the default browser" + else + sed 's/^BASEURL=/URL=/' "$1" | grep -m 1 '^URL=' | sed 's/^URL=//' | sed 's/\r//' | xargs xdg-open + fi + ``` + - give execution permission : `chmod +x /usr/local/bin/open_url` + - tell the file manager to use this script to open .URL files : + - right click on a .URL file + - open with other application + - 'use a custom command' : /usr/local/bin/open_url + - 'use as default for this kind of file' (or equivalent) + - open :) + + **pdftotext** transforme un pdf en un fichier texte **^** designe le debut d'une ligne * n'importe quel caractere autant de fois que possible diff --git a/tutos/vim.txt b/tutos/vim.txt index 20c59ba..600b669 100644 --- a/tutos/vim.txt +++ b/tutos/vim.txt @@ -30,6 +30,7 @@ **:bp** go to previous buffer **:bn** go to next buffer **:b#** switch to last edited buffer + **:e.** open a temporary navigation explorer **:Explore / :ex** navigate through directory, rename, and plus **:Lexplore / :Lex** buffer directory open in left split window **:Lexplore 30** Explore window is of size 30