-
Notifications
You must be signed in to change notification settings - Fork 10
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
Better new file dialog #218
Comments
just realized we have 218 issues/prs - waaaat |
btw there are supposed to be images on the buttons - I was lazy so didn't use an iconfont |
implement it pls |
A gopher-brain! :P |
who is implementing this? @ElementalCode/programmers |
Hello, I am not a developer. That thing looked lovely. Do you think there is a way to keep the cursor from going into a text selection cursor when you hover over the text within the button. Perhaps by using the Otherwise it looks great! :) P.S. Remember to check if the user types the file extension in themselves: if they do, then you shouldn't apend it again. You could do a regex:
|
What about something like this? http://jsfiddle.net/Airhogs777/9jnhmku6/embedded/result/ (I know it's hacky but it can be rewritten later) |
Cursor pointer pls: http://jsfiddle.net/PullJosh/6sp0podq/ |
pshh who needs usability when you have design (jkjk) that was more of a proof of concept for the inputbox than the buttons anyway 📦 |
Yes, that is what I had in mind. Well Done everybody! Out of interest, are you guys accepting any more developers |
How's this look? It's less sketchy than the last version: http://jsfiddle.net/Airhogs777/7hb4tj8a/ |
Ctrl+a will show the file extension is also before the file name as well as after. It's a clever trick for centering everything nicely, but I'd be great if there was a better solution... |
Once we know how wide the extension text is, we could probably use relative positioning or a transform |
Okay, try this: http://jsfiddle.net/Airhogs777/7hb4tj8a/ |
more robust JS and sassified, I think this is almost ready to go into the editor: http://jsfiddle.net/Airhogs777/7hb4tj8a/ |
todo: put standard validation on the file name |
Maybe you could do an onkeyup -> check for invalid chars, if found, show notice, and remove? |
Either that or when you try to create the file it throws an error... I haven't decided yet |
If you do that, it always looks cool if you make the filename go really red then fade back to black? Or just keep it red? |
I think it is annoying for a user to type something like |
Maybe do a regex to match something like |
Awesome! This is just me, but it'd be nice to make the red border a bit brighter and gray out the Create button if you can't create the file. |
I like it, maybe you could add some kind f explanation when th user hovers over the disabled "Create" button? Like a "Filename too short" or a "Filenames can only contain characters a-z 0-9 - _"? |
Can a filename even be too short? :P The only exceptions I can think of:
|
Right now I'm using the regex |
Yeah when I said too short I meant length 0 :P |
how's this? http://jsfiddle.net/Airhogs777/7hb4tj8a/8/ I can tailor it to the specific error but that'll be more work |
I can do it for you if you like? Give me a sec to do it |
Your regex is faulty somehow: |
good catch, it looks like contenteditable automatically converts trailing spaces to nbsp |
same for spaces at the start. That might be as simple as a find-and-replace |
Yup |
I am in UTC+3 so I better go to bed soon... |
You theoretically could have |
Well yeah but should you allow it? EDIT: Why am I using first person? I am not on the team.. :P |
Sure. As long as they don't have two files with the same (lack of) name, there's nothing really wrong. Probably not though because it won't show up in most file explorers |
It seems a little weird but you do have a point |
It makes me uncomfortable, but... low floor, wide walls, as the ST likes to say |
wow, people have made so many great improvements to my original design! one thing is I don't like how the text becomes unselected when you click a button; is there a way for it to stay selected? |
You mean, when you click the JS/HTML/CSS buttons, the caret should stay in the same place in the textbox? |
(Sorry, I had to bump...) |
shrug |
* fancier new-file dialog (#218) * fix validation to check for duplicate file names * style file pane in same style as new file popup * sassier variables
https://thimbleprojects.org/theinitializer/46355/
here's a thing I made
someone implement it and pr it
The text was updated successfully, but these errors were encountered: