ahuth / preview-tabs

Sublime-style preview tabs for Atom
MIT License
11 stars 2 forks source link

Arrow keys preview #11

Open ccorcos opened 9 years ago

ccorcos commented 9 years ago

Hey, It would be great if I didn't have to click every file and the arrow keys would open a new preview of each file as they're selected. Would this be terribly hard to implement?

ahuth commented 9 years ago

Hmm... not sure if it would be hard or not. Will look into it.

Thanks for the idea.

aesopwolf commented 9 years ago

+1

ahuth commented 9 years ago

I haven't looked into it, yet, but I think this might be difficult. Not sure if there's an event that gets triggered when a file is highlighted via the arrow keys.

aesopwolf commented 9 years ago

Makes sense. Might need to look into the atom API. What part of it do you think would be best to create an API that sends an event for a highlighted file name? The SelectListView class?

I'm totally new to the atom api, so I'm not sure where to start looking.

ahuth commented 9 years ago

I would think it would be within the Tree View, but I'm not 100% sure. Looks like SelectListView isn't where it would be, but I could be mistaken.