Skip to content

Instantly share code, notes, and snippets.

@azmenak
Created October 6, 2017 16:43
Show Gist options
  • Save azmenak/cc2d1222d3e5a23984543de258a1a170 to your computer and use it in GitHub Desktop.
Save azmenak/cc2d1222d3e5a23984543de258a1a170 to your computer and use it in GitHub Desktop.

Sourcegraph Notes

General

  • maybe the option to automatically sync remote repos would be nice(or some VScode style alert that N amount of remote changes have not been synced)
    • every so often I collapse all the files in explorer and go down the list and click on "sync" to get the latest files
  • Strange thing in search pallet, if I type in the name (or partial name) of a repo first, I cannot search within it eg.
    • I want to open the Field file in the formik repo
    • Field is super generic so I type formikfield in the search, but get no results

Adding New Repos

  • at first glance there doesn't seem to be a way to add a repo when you close the "welcome" tab
  • after some searching I found that the "home" icon in the bottom left got you back there, but I did search for command in the command pallet first, and even tried the help menu and looked around the "explorer" section for some time
  • eventually I learned that the "repo" keyword in the command pallet is what I'm looking for, but even then I need to know to to open search with ⌘P and type "repo" followed by a space

UI Notes

  • connecting to Github/Bitbuck is nice and easy
  • would have expected the button Add Github token to change after I added that token
    • They seem to change when I added both a Github and Bitbucket token/password

How I'm using Sourcegraph

  • I used it as my primary editor for a bit, but I found the universal search across repos to be an issue at times

    • searching for files with generic names is just easier when I'm only looking in the repo I'm working on
    • Did seem to do a better job of bringing "my" files to the top compared to my experience of trying the editor for the first time
  • Getting the team on-board (esp. for comments functionality) was a bit of a non-starter at our company

    • team is all over the place editor wise (VSCode, Sublime, VIM, some jetbrains product...)
  • I've been using Sourcegraph alongside another editor, which is working very well so far

    • Using the other editor to "focus" on coding
    • Using SG for search/discovery/etc...
    • Also using SG for looking at PRs whenever I need more context then the diff shown in bitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment