8 ms·
Show HN: Jumpfiles – get more done with fewer keystrokes
- deleted 6y ago[deleted]
- lqet 6y ago> quickly create, refresh, and run terminal "shortcuts" for common commands $ alias shortcut='common command' > jump around the filesystem $ r='/long/complicated/dir' $ cd $r $ pwd /long/complicated/dir > chain them together $ a=echo $ b=hello $ $a $b hello So what exactly is the added value here? Is it a manager for shortcuts? Persistence?
- ryanmjacobs 6y agoPersistence between alternate shells is pretty nifty though. I think that's the main gimmick.
- verdverm 6y agoQuickly editing, reloading, and refreshing from anywhere. Also the persistence between shells and a dot file loading. Another nice thing is you environment bar secrets are only exposed during command execution when they are needed. (See how the .jumpfiles.secrets.sh is used) It's also largely an experimentation ground for some upcoming Hof features.
- verdverm 6y agoI missed the "ah ha" moment of your chain example. Very cool! I'm not sure how I have never seen or tried that ad hocly before. Thanks!
- simon1573 6y agoI have been using this since last it featured at the frontpage. It's great for jumping to different projects etc.
- verdverm 6y agoJust pushed a new version,ales it much easier to plugin your own custom stuff. Still need a good example of this on GitHub... Take. A look at the Hof leap, there are some examples of jumping to a dir, found something, and then hopping back to where you were. Super useful for building tools you are working on but don't need the extra shell session
- Toutouxc 6y agoSo I've read through the README and I still have no idea how it works or what it even is. Is this a concept I should've heard of before or is it related to some other project/concept?
- IggleSniggle 6y agoI get it because I do something similar: I discover I have some command (`annoyingly long but repeatable command `) that I run in a particular repo (`repo\over\there`) frequently. For me, I then alias switching to that repo with a 1-3 letter sequence: `rot` and the command to `alc` (annoyingly long but repeatable command). Often I want these to be semipermanent so the aliases are added to my bashrc. This project looks like it is streamlining and organizing-per-project this kind of workflow / preference for short aliases, with helpful conventions like "?" that act sort of like a tab-completion hint.
- LeonB 6y agoYou might like ok-bash. (https://github.com/secretGeek/ok-bash https://github.com/secretGeek/ok-bash) In any folder, you put all your favorite One-liners for that folder into a file called “.ok”. Then you can run them command with “ok 1” for the first command, or “ok 2” for the second command, etc. Use “ok” by itself to pretty-print all the available commands in that folder. I started the project but my friend @doekeman took it waaay further than I ever dreamed. It’s really helpful if you have a bunch of different projects that you work on, and need a way to remember all their different commands and incantations. There’s a Powershell version too (ok-ps). For there bit where I jump around from one project to another I use a system called markjump. It’s great too.
- Kaze404 6y agoSeems pretty useful, but isn't that basically a makefile?
- LeonB 6y agoLol. I have heard that from people who haven’t used it. It’s lighter-weight. Not as cryptic. Can also hook it up to your makefile targets, make them easier to access. The other thing people say is “isn’t that same as npm scripts?” — it can complement those as well. I modify “cd” so that on entering any folder it shows me the available .ok commands, if any.
- mrtobo 6y agoAdd some usage examples if you really wanna communicate the value of this. I recommend video.
- hprotagonist 6y agoI use: - direnv (https://direnv.net https://direnv.net) for project-specific environment variable management and more - fzf (https://github.com/junegunn/fzf https://github.com/junegunn/fzf) for rifling through history and finding files quickly. - z (https://github.com/agkozak/zsh-z https://github.com/agkozak/zsh-z) to partial-match on a frequency-weighted directory switch (eg, `z Proj <RET>` will move me to `$HOME/Code/Projects/`.
- sorbits 6y agoFor the last one, worth mentioning CDPATH: CDPATH The search path for the cd command. This is a colon-separated list of directories in which the shell looks for destination directories specified by the cd command. A sample value is ".:~:/usr". This works with tab completion.
- rozab 6y agoI think fasd (https://github.com/clvv/fasd https://github.com/clvv/fasd) is pretty much a superset of both fzf and z, but I haven't actually used fzf before
- ARandomerDude 6y agoCheck out `z`. It manages long paths automatically so you can cd quickly. One of the best tools I've come across. https://github.com/rupa/z https://github.com/rupa/z
- quest88 6y agoKeystrokes aren't slowing me down at work. It's shitty debugging, long build and test times. Keystrokes are negligible.
- verdverm 6y agoSee our Hof project, working on that too. Jumpfiles got ephemeral VMs and k8s last night, so if you want to enable consistent dev envs and debugging, there are some options. Email me if you'd like to know more about what we are planning and some of the more leading edge capabilities.
- verdverm 6y agoFor anyone interested, we added some bounties so you can make money contributing to Jumpfiles and our other open source projects. I personally made my independent start freelancing and would now like to support others.