{"action":"created","issue":{"url":"https://api.github.com/repos/BZFlag-Dev/bzflag-import-7/issues/1","labels_url":"https://api.github.com/repos/BZFlag-Dev/bzflag-import-7/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/BZFlag-Dev/bzflag-import-7/issues/1/comments","events_url":"https://api.github.com/repos/BZFlag-Dev/bzflag-import-7/issues/1/events","html_url":"https://github.com/BZFlag-Dev/bzflag-import-7/issues/1","id":66343330,"number":1,"title":"[CLOSED] Add: Simple message recipient auto-complete feature.","user":{"login":"JMakey","id":5003155,"avatar_url":"https://avatars.githubusercontent.com/u/5003155?v=3","gravatar_id":"","url":"https://api.github.com/users/JMakey","html_url":"https://github.com/JMakey","followers_url":"https://api.github.com/users/JMakey/followers","following_url":"https://api.github.com/users/JMakey/following{/other_user}","gists_url":"https://api.github.com/users/JMakey/gists{/gist_id}","starred_url":"https://api.github.com/users/JMakey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMakey/subscriptions","organizations_url":"https://api.github.com/users/JMakey/orgs","repos_url":"https://api.github.com/users/JMakey/repos","events_url":"https://api.github.com/users/JMakey/events{/privacy}","received_events_url":"https://api.github.com/users/JMakey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BZFlag-Dev/bzflag-import-7/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-04T17:20:56Z","updated_at":"2015-04-04T17:20:59Z","closed_at":null,"body":"<a href=\"https://github.com/beckettsimmons\"><img src=\"https://avatars.githubusercontent.com/u/3991373?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [beckettsimmons](https://github.com/beckettsimmons)**\n_Friday Feb 07, 2014 at 19:08 GMT_\n_Originally opened as https://github.com/BZFlag-Dev/bzflag-import-3/pull/1_\n\n----\n\nSimply start typing the callsign of a player and then hit tab and the first matching callsign will be selected as the recipient of your message.\n\n----\n\n_**[beckettsimmons](https://github.com/beckettsimmons)** included the following code: https://github.com/BZFlag-Dev/bzflag-import-3/pull/1/commits_\n"},"comment":{"url":"https://api.github.com/repos/BZFlag-Dev/bzflag-import-7/issues/comments/89619735","html_url":"https://github.com/BZFlag-Dev/bzflag-import-7/issues/1#issuecomment-89619735","issue_url":"https://api.github.com/repos/BZFlag-Dev/bzflag-import-7/issues/1","id":89619735,"user":{"login":"JMakey","id":5003155,"avatar_url":"https://avatars.githubusercontent.com/u/5003155?v=3","gravatar_id":"","url":"https://api.github.com/users/JMakey","html_url":"https://github.com/JMakey","followers_url":"https://api.github.com/users/JMakey/followers","following_url":"https://api.github.com/users/JMakey/following{/other_user}","gists_url":"https://api.github.com/users/JMakey/gists{/gist_id}","starred_url":"https://api.github.com/users/JMakey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMakey/subscriptions","organizations_url":"https://api.github.com/users/JMakey/orgs","repos_url":"https://api.github.com/users/JMakey/repos","events_url":"https://api.github.com/users/JMakey/events{/privacy}","received_events_url":"https://api.github.com/users/JMakey/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T17:20:59Z","updated_at":"2015-04-04T17:20:59Z","body":"<a href=\"https://github.com/beckettsimmons\"><img src=\"https://avatars.githubusercontent.com/u/3991373?v=3\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [beckettsimmons](https://github.com/beckettsimmons)**\n_Wednesday Feb 12, 2014 at 02:41 GMT_\n\n----\n\nThe AutoCompleter class solely returns a string and also modifies the matches string pointer, correct?  This allows the AutoCompleter to do a simple auto-complete by typing \"/msg\" and beginning of a player's callsign then press F2, as you said (which is kinda messy). But to extend the class to actually set the message recipient (like the left and right keys do) would be out of it's scope, right? What more would a completeCallsign method actually do?\r\n\r\nAlso, why doesn't the AutoCompleter use something like regex? (Is it to keep it lightweight?) Would solve the case insensitive issue and make pattern matching a bit simpler. \r\n\r\n\r\nThe patch tries to match the whole compose string regex with the whole player callsign. It should have no issues with multiple words.\r\n\r\nI guess Shift + Tab is the next best thing. Using F2 would conflict with the AutoComplete.\n"}}