From 0389ffe2ee84601dbe28e9806d6a8a31fc8e344b Mon Sep 17 00:00:00 2001 From: Daniel Heras Quesada Date: Sun, 30 Mar 2025 18:00:34 +0200 Subject: [PATCH] feat: emoji commit message generator --- tasks/assets/emoji_list.txt | 24 ++++++++++++++++++++++++ tasks/commit-stradi.sh | 11 +++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tasks/assets/emoji_list.txt create mode 100644 tasks/commit-stradi.sh diff --git a/tasks/assets/emoji_list.txt b/tasks/assets/emoji_list.txt new file mode 100644 index 0000000..0cd6c73 --- /dev/null +++ b/tasks/assets/emoji_list.txt @@ -0,0 +1,24 @@ +:broom: โ”‚ ๐Ÿงน โ”‚ clean, cleanup, remove +:recycle: โ”‚ โ™ป๏ธ โ”‚ recycle, actor +:wrench : โ”‚ ๐Ÿ”ง โ”‚ adjustment, rection, adapter +:gear: โ”‚ โš™๏ธ โ”‚ adjustment +:control_knobs: โ”‚ ๐ŸŽ› โ”‚ config, adjustment +:bug: โ”‚ ๐Ÿ› โ”‚ bug +:zap: โ”‚ โšก๏ธ โ”‚ speeded +:bar_chart: โ”‚ ๐Ÿ“Š โ”‚ analytics, chart +:chart_with_upwards_trend: โ”‚ ๐Ÿ“ˆ โ”‚ analytics, chart, upwards +:package: โ”‚ ๐Ÿ“ฆ โ”‚ package, wrap, ture +:fire: โ”‚ ๐Ÿ”ฅ โ”‚ fire, fix +:sparkles: โ”‚ โœจ โ”‚ new, feature +:nail_care: โ”‚ ๐Ÿ’… โ”‚ styles, prettify +:art: โ”‚ ๐ŸŽจ โ”‚ styles, colors +:lipstick: โ”‚ ๐Ÿ’„ โ”‚ styles, prettify +:white_check_mark: โ”‚ โœ… โ”‚ check, done +:test_tube: โ”‚ ๐Ÿงช โ”‚ test, testing +:pencil: โ”‚ ๐Ÿ“ โ”‚ docs +:warning: โ”‚ โš ๏ธ โ”‚ warning +:no_entry_sign: โ”‚ ๐Ÿšซ โ”‚ cancel +:rotating_light: โ”‚ ๐Ÿšจ โ”‚ alert, ect +:mag_right: โ”‚ ๐Ÿ”Ž โ”‚ search +:old_key: โ”‚ ๐Ÿ— โ”‚ dentials +:rocket: โ”‚ ๐Ÿš€ โ”‚ shipping diff --git a/tasks/commit-stradi.sh b/tasks/commit-stradi.sh new file mode 100644 index 0000000..63cfb77 --- /dev/null +++ b/tasks/commit-stradi.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +emoji="$(cat ~/.config/zed/tasks/assets/emoji_list.txt | fzf | awk -F' ' '{print $1}')" + +branch="$(git branch --show-current | awk -F'/' '{print $2}')" + +message="[$branch] $emoji " + +echo -n $message | pbcopy + +echo "$message copied to clipboard"