Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

I totally had this thought too when making it. The logic is super simple as-is, so I was scared if I went down the rabbit whole of trying to auto increment/decrement line numbers I might muddy things up. I'll see if add that functionality cleanly at some point (or if you'd like to feel free to take out a PR!) Thanks for the feedback!


sort by: page size:

I love the idea! This makes a lot more sense than writing Formatters and repeating code everywhere. I'll play with this later today. Thanks!

That's a great idea. I've rewritten my own version to use these signals instead of numbers where possible.

Makes sense! I'll have to figure out a way to incorporate that because my current code structure is kind weird, but when I do I'll let you know! Feel free to sign up for the newsletter so I can notify you when that feature is ready! :D

neat and minimal! I will update the code. Thanks for your comments and stopping by :)

This is an interesting idea - I will look into it. It does not seem to conflict with the current syntax. Thanks for the suggestion!

It's a good idea. I'm going to implement similar functions soon. Stay tuned :)

Thats pretty smart! I rem I did something like this with a notepad. Would love to see to future code!

Thanks, and great suggestion! Would you mind opening an issue on GitHub for it? I'll probably get around to implementing it soon.

Pretty interesting concept! I'd like to be able to add variables that are used throughout snippets, so changing designs doesn't require me to re-enter a lot of information.

Thanks for the feedback -I'll share at once with my colleagues. The code is open source though, it should be reasonably easy to add these features.

I like the idea, but I want it to be embeddable and since I'll mostly be embedding this in some syntactically C-like language, I would like the scripting syntax to not look so out of place. I updated my previous post to say as much.

Im with you. This is great and clever, but I would have to maintain code like this.

Agreed, it's not the most elegant code, but it's so short and simple I haven't bothered reorganizing the code yet. I probably will start adding features like re-bindable pause key, etc., and I will untangle the mess a bit at that time.

I agree 100% with you. I am working on a modular version of the script and I will update the code soon. Thanks for your comment!

Great tutorial! I’ve always wondered how this is implemented, and how I could add it to my scripts. The interface seems simple enough.

This is a great idea! I hadn't thought about it. I'm currently fixing the major bugs and refactoring the code a bit, and when I finish that, I'll get to your idea, I find it really interesting.

Thanks a bunch.

I'll take a crack at implementing something similar, much appreciated!


I actually downloaded the code that was used for this off GitHub and tried it out. It is very simple, though I wish I could say I understood it better. I’d love to see a more robust implementation of it to be able to produce better looking results.

I just made my own function but that sounds great, I'll check it out!
next

Legal | privacy