Autocompleting your @username mentions

Did you know that you can use @mentions when commenting on commits, pull requests, and issues to get the attention of your teammates?

When a user is mentioned they will receive an email letting them know their attention is needed on Bitbucket. We often use mentions in pull requests to let other devs know we would like feedback on a particular change.

We’ve been noticing a problem though: as the number of developers at Atlassian has grown (300+), we’ve found it difficult to keep track of who has which username when leaving a comment.

You autocomplete me…

Simply type @ to start finding any user on Bitbucket, especially members of your team, without having to know their Bitbucket username.

Bitbucket will remember the users you have most recently mentioned and highlight those users who are in any team you are a member of. You can also quickly see when you or your teammates have been mentioned and click-through to their user profile.

Cursores.js: putting the ‘complete’ in ‘autocomplete’

As part of building autocomplete for mentions, we’ve open-sourced a new library, Cursores.js, which allows you to get and replace the token under the cursor in a textarea or input.