{"action":"opened","issue":{"url":"https://api.github.com/repos/dreadworks/dotfiles/issues/4","labels_url":"https://api.github.com/repos/dreadworks/dotfiles/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dreadworks/dotfiles/issues/4/comments","events_url":"https://api.github.com/repos/dreadworks/dotfiles/issues/4/events","html_url":"https://github.com/dreadworks/dotfiles/issues/4","id":54661398,"number":4,"title":"Extend the replacement rules of *.alias files","user":{"login":"dreadworks","id":608779,"avatar_url":"https://avatars.githubusercontent.com/u/608779?v=3","gravatar_id":"","url":"https://api.github.com/users/dreadworks","html_url":"https://github.com/dreadworks","followers_url":"https://api.github.com/users/dreadworks/followers","following_url":"https://api.github.com/users/dreadworks/following{/other_user}","gists_url":"https://api.github.com/users/dreadworks/gists{/gist_id}","starred_url":"https://api.github.com/users/dreadworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreadworks/subscriptions","organizations_url":"https://api.github.com/users/dreadworks/orgs","repos_url":"https://api.github.com/users/dreadworks/repos","events_url":"https://api.github.com/users/dreadworks/events{/privacy}","received_events_url":"https://api.github.com/users/dreadworks/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dreadworks/dotfiles/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-17T13:13:01Z","updated_at":"2015-01-17T13:13:01Z","closed_at":null,"body":"Currently commands like `t a` do not work correctly because the specified rule `t a [0] : tmux attach -t [0]` is not able to handle the case that `[0]` might not be set. It should be possible to extend the syntax of the rules in a way where additional information can be enclosed in the replacement rule.\r\n\r\nProposal:\r\n`t a [0] : tmux attach [-t 0]` yields `tmux attach` for `t a` and `tmux attach -t foo` for `t a foo`.\r\nThe replacement regex would look something like this: `\\[([\\w-]*)(\\d+)([\\w-]*)\\]`."}}