Live data from Hacker News

Facebook PathPicker

facebook.github.io

151–160 of 168 posts

Re: Facebook PathPicker

#151
post #32

Earlier quoted context omitted.

Very cool tool. Just curious as to why directories are not selectable. I did "ls | fpp" and everything got listed (directories and files) but only the files were selectable.

Yeah, we don't match on directories since the regex would overmatch other results (we would basically have to match anything that is words with a slash). However if we added support for checking for file / directory existence we could definitely add support for that

Sounds like something I should give a try myself in a pull request.

Re: Facebook PathPicker

#152
Impressive. I was very happy with percol. Now I see other possibility. I really like the "select first, then comes the command" approach.

I hope you can add support of selecting directories, and fuzzily filtering results(like what percol does).

Re: Facebook PathPicker

#153
post #76

Dozens of cool utilities like this are created every week and launched at Show HN, but without "Facebook" in their names you need at least 10 of them to get the many points this thread has gathered.

Well, the numbers changed, now you'll not need at least 10 of them, but rather 20 or 30 of them.

Re: Facebook PathPicker

#154
post #138

Earlier quoted context omitted.

Might already be familiar with it, but if you aren't, you should check out sikuli script [1] for when you have a repetitive GUI task you have to perform that can't be directly scripted. I've used it to script some really complex workflows through GUI's It's also just weird and interesting to program something to move through a GUI as fast as is possible 1: http://www.sikuli.org/

Wow. Never heard of it, but this must be the most amazing software idea I've seen in a while. It's gonna be a playful day :P

Hahah, awesome.

Yeah, getting the scripts to run and be robust is definitely an art sort of thing, but I've used it to create what amounts to a CLI's for legacy apps that you could only interface with through GUI's.

It's also fun to run across stuff like "Oh, the developer of this platform wasn't expecting me to be able to respond to a window within 20ms of it popping up on the screen."

Be interested to see what you think, if you have time to leave a comment

Re: Facebook PathPicker

#156

Earlier quoted context omitted.

You sound like a Windows admin living in a Linux/BSD world. I struggle to do everything with Powershell, but almost everything I do has a mouse input. I use a gaming mouse for system administration - a Razer Naga Epic with the 12 thumb buttons. They're a 3x4 array; I bind them to: Row One 1. F5 2. Up arrow 3. F2 Row Two 4. Left arrow 5. Down arrow 6. Right arrow Row Three 7. Tab 8. Delete 9. Backspace Row Four 10. En…

You should use whatever works for you but this strikes me as very bizarre I have to admit. I started out with a mouse as well and I can see this being something I would have attempted if I hadn't just put my head down and forced myself to get used to keeping my hands on the keyboard.

As I said, it would be nice to be able to do everything with Powershell (or even Cygwin), but the every module isn't available for every version of Powershell, and the last 2 versions of Powershell don't work with some older (but still supported) versions of Windows.

Want to control you audio from Powershell? There's a cmdlet[1] for that. But it only works on Powershell 4.0 and higher. And PS 4.0 is only available on Win7, (not Win8) Win8.1, and Server 2008-2012.

So on my gaming PC, where I thought putting Win8 Enterprise from my MSDN would be a good idea, I can only change the volume via mouse, or keyboard volume buttons.

[1] https://github.com/cdhunt/WindowsAudioDevice-Powershell-Cmdl...

Re: Facebook PathPicker

#157

Hey 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…

Oh wow, thanks! I was just thinking about this today - how I'm always cut-and-pasting file paths from ag (silver surfer) results at the console. One thing I noticed: FPP gets confused by filenames with multiple dots. If a file is named for example "dev_backup.ldif.gz", FPP thinks that "ldif.gz" is the entire file name.

Open all silver searcher "Foo" results in Sublime:

subl `ag -l Foo`

Re: Facebook PathPicker

#158

Is there a reason why this is named Facebook PathPicker instead of PathPicker? It seems that the original author is giving up rights of their software to Facebook (it says copyright Facebook right in the license). What troubles me is that this tool seems completely unrelated to Facebook's business so why must they assert ownership of their employee's side project? On the other hand, it could be the author's intent to…

In the time it took you to write all that, you could've answered this question for yourself. He wrote it at work, as part of his job, at Facebook. And if he's not "troubled" by it, why are you?

Re: Facebook PathPicker

#159
post #63

Hey guys, great tool. Just want to point out it doesn't play well with ack (a better grep) because ack does not prepend a "./" to the file list returned from "ack -l 'foo'". Any way to make it work with the following: junk/foo/bar.txt instead of just ./junk/foo/bar.txt ?

Hey @iopuy can you file an issue on github? For paths that are not absolute or relative (and thus ambiguous), we: -- Try to detect the top-level version control directory -- Use that if one is found But we could possibly pipe the current working directory into the python context from bash and go from there

Done. https://github.com/facebook/PathPicker/issues/63

Re: Facebook PathPicker

#160
post #138

Earlier quoted context omitted.

Wow. Never heard of it, but this must be the most amazing software idea I've seen in a while. It's gonna be a playful day :P

Hahah, awesome. Yeah, getting the scripts to run and be robust is definitely an art sort of thing, but I've used it to create what amounts to a CLI's for legacy apps that you could only interface with through GUI's. It's also fun to run across stuff like "Oh, the developer of this platform wasn't expecting me to be able to respond to a window within 20ms of it popping up on the screen." Be interested to see what you…

Didn't have all the time I wanted today but played with 'hello world' samples and it's a fun new way of scripting for me. I don't have an immediate use for it but next time I feel something needs automation I'm definitely going to give it a go.
Post reply on HN