Thanks for stepping by!
This is not perfect but it work (on my machine) any problem you welcome to share in comments :)
It search in task's description and annotations urls, phones and emails, then let you choose whitch to copy to clipboard with rofi. It will show uniq values of:
- task description (title)
- task's annotations
- found emails, phone, mails
Required packages: rofi
sudo pacman -S rofi # arch
sudo apt install rofi # ubuntu
[[ -f $HOME/.zshrc ]] && FILE=$HOME/.zshrc || FILE=$HOME/.bashrc;
echo '[[ ! -f /tmp/task_copy_to_clipboard.sh ]] && curl -s https://gist.githubusercontent.com/SimonHryszko/1e088bcb3794e956e1730219b3d371fb/raw/db6d2e2a9a9149353b7443d7909cb3954e08b477/task_copy_to_clipboard.sh -o /tmp/task_copy_to_clipboard.sh; chmod +x /tmp/task_copy_to_clipboard.sh' >> "$FILE";
That's good, there is no reason to trust me, try this
- Download below script to anylocation you want
- Add execution permissions via
chmod +x FILE_LOCATION
Type this
/tmp/task_copy_to_clipboard.sh 1
# change file location if not choosed auto-update
Should show rofi with at least task description (title)
If you want to 1
trigger script and choose auto-update then:
echo 'uda.taskwarrior-tui.shortcuts.1=/tmp/task_copy_to_clipboard.sh' >> "$HOME"/.taskrc
In other words:
To taskwarrior config file (default: ~/.tashrc) add following line
```sh
uda.taskwarrior-tui.shortcuts.1=/tmp/task_copy_to_clipboard.sh
where uda.taskwarrior-tui.shortcuts.1
mean that 1
will trigger script
and /tmp/task_copy_to_clipboard.sh
is file location of script
I share it free of charge. You can use it, modify it, redistribute it, sell it, whatever you want.
Any problem you welcome to share in comments or even chat with me on discord shirobachi#3663
:)
If you like it, you can buy me a coffee :)