Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear visual indication which code has been executed #130

Open
onyxfish opened this issue Nov 5, 2015 · 8 comments
Open

Clear visual indication which code has been executed #130

onyxfish opened this issue Nov 5, 2015 · 8 comments
Labels
enhancement 🌟 New feature ideas

Comments

@onyxfish
Copy link

onyxfish commented Nov 5, 2015

Okay, first of all, I flipping love this software. It's made me tremendously more productive. Thank you for creating it.

I'm wondering if it would be possible to add a clear visual indication which lines of code have been executed--either a background highlight or marker in the margin. Ideally this visual indication would disappear when that line of code has subsequently been modified.

When I'm doing analysis I find myself jumping around executing lines of code and it's sometimes difficult to tell for certain if I've run all the code that the current block depends on.

@willwhitney
Copy link
Collaborator

Glad you like it!

This sounds like a great feature. I'm super busy right now (applying to PhD programs!) but if you're interested in writing a PR for this that would be awesome.

@onyxfish
Copy link
Author

onyxfish commented Nov 6, 2015

I may do that! I'm not at all familiar with the architecture of Atom, but I'll poke at it and see what I can figure out. Thanks!

@willwhitney
Copy link
Collaborator

I was thinking about this again today while writing some Julia in Hydrogen. The highlighting version of this would be awesome.

@onyxfish
Copy link
Author

onyxfish commented Nov 7, 2015

Sat down and took a first whack at this. The good news: it's definitely possible. I've got a proof of concept that adds a class to lines in the "selection" case only. Kudos to you for having readable code. The bad news: I can't get the damn class style to show up, nor is the marker invalidation working in the way the documentation describes. I'm certain both of these things are my error. I'm going to take a break and I might take another crack at it later this weekend.

@onyxfish
Copy link
Author

onyxfish commented Nov 7, 2015

Couldn't let it go. I've got it about 75% working on my master: https://github.com/onyxfish/hydrogen

@willwhitney
Copy link
Collaborator

What a boss! This is looking really nice.

A couple of things to think about before shooting me a PR:

Great work!

@onyxfish
Copy link
Author

onyxfish commented Nov 8, 2015

Sounds great, thanks for the tips. I'll send you a PR as soon as I can get it finished up. (I also need to re-implement your special casing for Ruby.)

C

@wadethestealth
Copy link
Member

@BenRussert was this idea dropped because of unfinished or not fit for hydrogen, because I would like to add this to my to-do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature ideas
Projects
None yet
Development

No branches or pull requests

4 participants