Skip to content

About

TUi Youtrack issue tracker

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

youtrack-tui

A read-mostly terminal UI for browsing YouTrack issues. Built with Bubble Tea v2.

Pick a saved filter, list issues, open one, read its body, comments and every custom field the instance defines — and who changed which field, when. Attachments and issue links are OSC 8 hyperlinks — Ctrl+Click opens them in your browser.

The only thing written back is a single custom field: e on an open issue picks a field and one of the values the instance itself offers, so finishing a review does not mean opening YouTrack to move the card. Comments, summaries and descriptions stay read-only.

Install

Linux, macOS, or Git Bash on Windows:

curl -fsSL https://raw.githubusercontent.com/omartelo/youtrack-tui/main/install.sh | sh

The installer verifies the GitHub release checksum and writes to $HOME/.local/bin. Override that directory with INSTALL_DIR.

Homebrew on macOS:

brew install --cask omartelo/tap/youtrack-tui

Arch Linux:

yay -S youtrack-tui-bin

First run

Just run it. With no config file, youtrack-tui opens a setup screen asking for a provider name, the instance URL and a permanent token. It verifies them against the API and only then writes $XDG_CONFIG_HOME/youtrack-tui/config.yml with 0600 permissions.

Get a token under Profile → Account Security → New permanent token with the YouTrack scope — read access is enough.

Configure by hand

For a second provider, or to pick which fields show on the list, edit the file. Copy config.example.yml to $XDG_CONFIG_HOME/youtrack-tui/config.yml:

page_size: 50

providers:
  - name: acme
    url: https://acme.youtrack.cloud
    token: ${YOUTRACK_TOKEN_ACME}
    list_fields: [State, Priority, Assignee]

${VAR} in token is expanded from the environment, so the secret can stay out of the file — the setup screen accepts that form too.

Instances whose certificate does not verify

Point at the PEM bundle that does trust it:

    ca_file: /etc/ssl/certs/corp-ca.pem

If you already export one for other tools, reference it instead of copying the path — the setup screen prefills this from NODE_EXTRA_CA_CERTS or SSL_CERT_FILE when either is set:

    ca_file: ${NODE_EXTRA_CA_CERTS}

If that is not an option, insecure_skip_verify: true turns certificate verification off for that provider only. It means anyone able to intercept the connection gets your token, so the header shows !insecure the whole time it is on. The error dialog offers this with i when a certificate fails to verify, and writes the choice to the config. The two settings are mutually exclusive.

Run

youtrack-tui                       # first provider in the config
youtrack-tui -provider acme        # a specific one
youtrack-tui -config ./config.yml  # a specific config file
youtrack-tui -q "#Logistica"       # every filter narrowed to this query
youtrack-tui update                # install the latest release
youtrack-tui -version              # what this binary is

Watching filters

w on a filter polls it in the background. Watched filters carry a ◉ in the gutter next to the ★ for pinned ones, and the header shows ◉ watching N. When an issue turns up that was not there before, you get a desktop notification and the issue is marked ● in the list until you open it.

watch_interval: 2m     # minimum 30s
notifier: zenity       # or notify-send, or none

providers:
  - name: acme
    watch:
      - 145-3

The first poll of a filter only seeds — starting the program never announces issues that were already there, so a restart is quiet even though w is remembered: it writes the config, and watch: is what the next run picks up. Only the active provider is polled.

Marking issues

x ticks the issue under the cursor off, and again takes the tick back. Ticked issues carry a ✓ in the list gutter, next to the ● a watched filter puts there; on an open issue the header says ✓ marked, since the list is not on screen.

The tick means whatever you decide it means — reviewed, read, answered, deal with it tomorrow. The app never assigns it one, and nothing is sent to YouTrack: it is written to your config, next to favorites.

providers:
  - name: acme
    marked:
      - PAY-1421
      - PAY-1388

Everything ticked also shows up as one more entry on the filters screen, Marked, which runs issue id: PAY-1421, PAY-1388. That is where marks get reviewed and cleared: filters change, an ID on its own says nothing about where it was read, and marks otherwise pile up in a file nobody opens. The entry appears with the first tick and goes away with the last — pressing x on that list is how you empty it.

Updating

The TUI checks GitHub for a newer release once, when it opens, and says so in the header. It never installs anything on its own — youtrack-tui update does that:

youtrack-tui update      # check, then install
youtrack-tui -version    # what this binary is

If the binary came from a package manager, update runs that manager instead of overwriting its file — replacing it would leave the manager holding a version that is not there, and its next upgrade would put the old one back:

Installed with What update runs
Homebrew tap brew upgrade --cask omartelo/tap/youtrack-tui
AUR (youtrack-tui-bin) paru -S youtrack-tui-bin (or yay)
install.sh, tarball, go install replaces the binary in place, after checking its SHA-256 against the release's checksums.txt

The AUR helper runs as you, not as root, and is pointed at pkexec for the install step, so the password is asked for in a polkit dialog rather than at a prompt underneath the output. What is about to run is printed before it runs.

To stop the startup check:

check_updates: false

Develop

Task drives everything; run task for the full list.

task check                    # lint, tests, installer smoke test
task run -- -provider acme    # build and launch
task cover                    # coverage summary

Keys

Key Action
enter open the selected filter / issue
esc back one screen
↑ ↓ move / scroll
o open the issue in YouTrack (browser)
y copy the issue URL to the clipboard
c open issue: jump to the comments
g G open issue: top / bottom
m load the next page of issues
s type a raw YouTrack query
S issue list: cycle the sort order · open issue: flip the comment order
f pin/unpin the selected filter (favourite)
w watch/unwatch the selected filter
x mark/unmark the selected issue
e open issue: set one custom field
/ fuzzy-search the current list
r reload the current screen
p switch to the next provider
? the full key list, in a popup
q quit

On the setup screen: tab next field, enter verify and save, ctrl+r reveal the token, ctrl+c quit. Paste the token with your terminal's usual shortcut (ctrl+shift+v, middle-click, cmd+v); ctrl+v reads the system clipboard directly.

e is the write. It asks the instance which fields of that issue take a value from a closed list — state, priority, assignee, whatever the project calls them — then offers those values and nothing else. The list is shorter than the card on purpose: fields with no list of legal answers (durations, dates, free text) and fields that hold several values at once (Sprint, usually) are left to YouTrack's own UI. It needs a token with write permission; a read-only one comes back with a permission error. Picking the value already there sends no request.

s and / are different things: s asks YouTrack a new question, / narrows what is already on screen. S cycles sort by: — filter's own order (YouTrack defaults to updated), then updated desc/asc and created desc/asc — and appends it to the query, the same clause YouTrack's own sort helper writes. Ordering happens on the instance, so the list is fetched again from the first page. To sort by a custom field, type the clause yourself: s, then project: PAY #Unresolved sort by: Priority desc.

On an open issue S flips its comments between oldest-first — how YouTrack returns them — and newest-first, which is where the news is on a long issue. The flip is written to the config, so the next launch opens the same way round and the header says which one is on. To set it by hand:

comments_newest_first: true

y copies the issue URL through the terminal (OSC 52), which is what makes it work over SSH, where o has no browser to hand it to. Inside an open issue, c jumps to the comments, g/G go to the top and bottom, and ctrl+u/ ctrl+d move half a screen — the viewport's own vim-style bindings, alongside pgup/pgdn. The issue ends with its field history, oldest first, so G lands on the latest change: who moved the state, who swapped the assignee.

An issue list is kept for 30 seconds, so stepping out of an issue and into the next one does not fetch it again. r ignores that and asks the instance.

o works from the issue list and from an open issue. Attachments and links still go through Ctrl+Click: mouse tracking is deliberately disabled so the terminal keeps handling OSC 8 hyperlinks. See CLAUDE.md for the full invariants and the list of known ceilings.

About

TUi Youtrack issue tracker

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages