tkellogg / Jump-Location

Powershell `cd` that reads your mind
MIT License
467 stars 26 forks source link

Split paths at dashes and underscores too #52

Closed tathamoddie closed 9 years ago

tathamoddie commented 9 years ago

I have paths like C:\Code\New-Machine. When I think about this as a jump location, I think "nm", however the path segment approach only sees it registered as "ne" at best.

If I was to take a crack at this, is Record.GetPathSegments the likely place to start?

vors commented 9 years ago

Oh, I guess you are sublime text editor user =) I would say GetMatchesForNormalizedSearchTerm is a right place. https://github.com/tkellogg/Jump-Location/blob/master/Jump.Location/CommandController.cs#L127

But, I prefer to keep it as is to be honest. dumb -> predictable -> easy to learn -> easy to use.

tathamoddie commented 9 years ago

Sublime, ReSharper Ctrl+T, Visual Studio Ctrl+Shift+T ... :)

If your preference is not to support this behaviour, please feel free to close this issue as-is. I'm unlikely to maintain my own fork solely for this purpose, but would be happy to spin up a PR if it the feature was likely to be accepted into the mainline.

vors commented 9 years ago

I just realize that I was misleaded by nm as a one word. You can achieve it now with j n m. j takes an array of query items

vors commented 9 years ago

btw, thank you for Ctrl+T shortcut for ReSharper - I didn't know about it :)

tkellogg commented 9 years ago

yep good call. I frequently use autojump as a reference since it's been around for years and has had a lot of activity. They still haven't implemented this functionality, so it's likely that people don't find it all that helpful to most people. j n m is probably good enough.