Skip to content

Commit

Permalink
prepend common words with hash symbol before adding
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencohn committed Jul 21, 2024
1 parent 7873ce9 commit 7dcfd88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OneMore/Commands/Tagging/HashtaggerDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ private void ShowHideGroup(object sender, EventArgs e)

private void EditTags(string text)
{
// add # to common word
if (text[0] != '#')
{
text = $"#{text}";
}

if (!tagsBox.Text.Contains(text))
{
tagsBox.Text = $"{tagsBox.Text} {text}";
Expand Down

0 comments on commit 7dcfd88

Please sign in to comment.