Skip to content

Instantly share code, notes, and snippets.

@vkareh
Created May 10, 2023 14:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkareh/5e4797a46b0247f6dfcb60b12a852511 to your computer and use it in GitHub Desktop.
Save vkareh/5e4797a46b0247f6dfcb60b12a852511 to your computer and use it in GitHub Desktop.
Jira TUI
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Jira
GenericName=Issue tracker
Exec=sh -c "xterm -class Jira -name jira -title Jira -e jira.sh"
StartupWMClass=jira
Icon=jira.png
Terminal=false
Categories=Office;;Network
#!/bin/bash
EPICS='jira epic list --plain --columns key,summary'
FZF_DEFAULT_COMMAND=$EPICS fzf \
--layout=reverse \
--header-lines=1 \
--preview 'jira issue view {1}' \
--bind 'ctrl-o:execute(jira issue view {1})' \
--bind 'ctrl-e:execute(jira issue edit {1})' \
--bind 'ctrl-m:execute(jira issue move {1})' \
--bind 'ctrl-a:execute(jira issue assign {1})' \
--bind 'ctrl-n:execute(jira issue create)' \
--bind "ctrl-r:reload($EPICS)"
@vkareh
Copy link
Author

vkareh commented May 10, 2023

If you have xseticon, the Desktop file can have the following Exec line:

Exec=sh -c "xterm -class Jira -name jira -title Jira -e jira.sh & sleep 1 && xseticon -class Jira ~/.local/share/icons/jira.png"

jira

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment