This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put that into your zshrc or bashrc, enjoy | |
extract_tickets_from_string_and_open_them_in_chrome() { | |
# This function, allows you to quickly open multiple Odoo task URLs in Chrome. | |
# When you run the script, it prompts you to paste any text containing Odoo task URLs and then press Ctrl-D to finish. | |
echo "Please paste your text with Odoo task URLs, then press Ctrl-D when finished:" | |
input=$(cat) | |
ids=$(echo "$input" | grep -oP "project\.task\/([0-9]+)\b" | grep -oP '[0-9]+') |