octalmage / Marknote

Markdown Note Taking.
36 stars 13 forks source link

Rethink double click to edit #13

Open octalmage opened 10 years ago

octalmage commented 10 years ago

Double clicking to edit is very clean and intuitive but it conflicts with selecting text. I've gotten used to it but I'd still like to be able to double click to select. Sooo, we either need a new way to switch to the editor, or find a way to make it work.

@briedenk suggested finding a way to only switch if whitespace is double clicked, which could work but I'm not positive it's possible.

Whatever we come up with, I'd like to refrain from using a button if possible.

mjchamplin commented 10 years ago

I'm currently looking at ways to incorporate this into the UX without it just being a button. I agree about the double-click, and I hadn't really even thought of that. A key binding seems too obscure.

ghost commented 10 years ago

This may be a little bit of a cop out, but would double clicking on the tab to open the editor work? Or how about double clicking anywhere in the tab bar frame to open the editor on the currently selected note?

mjchamplin commented 10 years ago

I feel like if we do that there will also need to be a button. It needs to be either really obvious or really intuitive, and I don't like the idea of it being so "hidden". BUT there may be an intuitive way to indicate that people should click there. I'm thinking it over.

octalmage commented 10 years ago

We could do hotkeys like, e for edit, d for duplicate, and n for new note.

ghost commented 10 years ago

I like the idea of hotkeys, but not as the only means of access. You had mentioned tripleclick to move between editor and markdown renderer (sp?). That's not an awful idea.

octalmage commented 10 years ago

I implemented triple click in 13399e0 and it's not bad! You can select a word with double click and get to the editor easily. Check it out in v0.4.2 (currently uploading Mac build) and let me know what you think!

octalmage commented 10 years ago

Another idea, what if you hold down a key, like command, when you want to select text. So cmd+double click would allow you to select a word.

ghost commented 10 years ago

I would not be opposed to this.

mjchamplin commented 10 years ago

My concern there is you're changing the default functionality. People are used to double-clicking to select, so if they have to re-learn I think it might be frustrating. I think cmd+double click to switch to editor would be more reasonable.

octalmage commented 10 years ago

Yeah you're right. Well checkout triple click and let me know what you think!

ghost commented 10 years ago

Not sure how well I like the triple click in practice. Can we do ctrl+double click for selecting text?

mjchamplin commented 10 years ago

Still think changing the default method for selecting text is troublesome.

Triple click isn't a natural gesture, I'd never really thought about that before.

I'm leaning toward there being some area of the editor where you double click to switch between. I'm trying to work that out in the UI design and I'll post something once I find a solution I like.

ghost commented 10 years ago

I think I like this best. Was it ever determined if double clicking text is distinguishable from double clicking within the window but not on text?

octalmage commented 10 years ago

@briedenk So I started trying to detect text under the cursor and it worked fine when the note is displaying, but in the editor I ran into issues. Ace uses a TON of little divs to color and position the code and this makes it very difficult. jQuery.nearest got me closer but it's still not there.

Anyway @mjchamplin and I discussed it and we came up with a page curl idea. In the bottom right there will be a small page curl and you'll (double?) click that to get to the editor.

ghost commented 10 years ago

I like the idea for a page curl a lot. Can't wait to see it implemented.

octalmage commented 10 years ago

Just added a CSS transition in 5e68d82261414dc7678d619d59d031d46d950736 and it turned out pretty awesome!

octalmage commented 10 years ago

We made the page curl "flat" and it didn't really work with the animation. It just looked like a magic flying triangle!

@mjchamplin, have you had any thoughts about this?

WHY IS THIS SO HARD.

mjchamplin commented 10 years ago

Actually I have! I had Joey Wilkinson try out Marknote yesterday and he gave me some great feedback, including a way to make that more obvious. I'll mock it up asap.

octalmage commented 10 years ago

Thank god!

octalmage commented 9 years ago

I miss double click to edit, it was so nice. And look, Capsule does it!