Facebook PathPicker
facebook.github.io
Facebook PathPicker
1–10 of 168 posts
Re: Facebook PathPicker
#2Facebook has a large codebase, so naturally we have a lot of long filenames and paths. It's a pain to type these out by hand, so I'd see a lot of (new) engineers select the text with their mouse before pasting it into the command line.
This is pretty inefficient and I knew there had to be a better way, so a few of us started hacking on a set of python regexes and a curses UI. Before long we had a pretty simple / easy command line utility that sped up everyones' day.
After a while we realized this would probably be helpful to all, so we open sourced it today!
Re: Facebook PathPicker
#3Hey everyone, I'm in the main engineer on this project if anyone has questions. Facebook has a large codebase, so naturally we have a lot of long filenames and paths. It's a pain to type these out by hand, so I'd see a lot of (new) engineers select the text with their mouse before pasting it into the command line. This is pretty inefficient and I knew there had to be a better way, so a few of us started hacking on a…
Re: Facebook PathPicker
#4Re: Facebook PathPicker
#5Re: Facebook PathPicker
#6Hey everyone, I'm in the main engineer on this project if anyone has questions. Facebook has a large codebase, so naturally we have a lot of long filenames and paths. It's a pain to type these out by hand, so I'd see a lot of (new) engineers select the text with their mouse before pasting it into the command line. This is pretty inefficient and I knew there had to be a better way, so a few of us started hacking on a…
https://gist.github.com/aristus/2304335
One of the most useful features is range selection syntax, eg, run git rm on items 4-16.
Re: Facebook PathPicker
#7I use fzf[0] for similar purposes. [0] https://github.com/junegunn/fzf
Glad more people are working in the productivity space though!
Re: Facebook PathPicker
#8Hey everyone, I'm in the main engineer on this project if anyone has questions. Facebook has a large codebase, so naturally we have a lot of long filenames and paths. It's a pain to type these out by hand, so I'd see a lot of (new) engineers select the text with their mouse before pasting it into the command line. This is pretty inefficient and I knew there had to be a better way, so a few of us started hacking on a…
Re: Facebook PathPicker
#9Hey everyone, I'm in the main engineer on this project if anyone has questions. Facebook has a large codebase, so naturally we have a lot of long filenames and paths. It's a pain to type these out by hand, so I'd see a lot of (new) engineers select the text with their mouse before pasting it into the command line. This is pretty inefficient and I knew there had to be a better way, so a few of us started hacking on a…
Re: Facebook PathPicker
#10This reminds me of https://github.com/mooz/percol
git checkout $(git branch | percol)
Since I had to almost compose my command beforehand rather than decide once I saw the output. So we take the opposite approach. Great UI though!