xta / HalloweenBash

Custom Bash Profile Generator
http://xta.github.io/HalloweenBash/
333 stars 32 forks source link

Space disappears after being dragged #3

Closed Draiken closed 1 year ago

Draiken commented 11 years ago

When you drag a space up, you can never drag another space there, since it disappears :)

graywh commented 11 years ago

Same for other single characters.

xta commented 11 years ago

@Draiken & @graywh - Any tips/resources on how to properly escape space characters in Bash? Thanks

Draiken commented 11 years ago

Never had to escape spaces, what exactly do you mean by escaping space characters?

xta commented 11 years ago

Perhaps I'm not looking for how to escape spaces. I am looking for any tips/suggestions that would fix the space disappearing.

Thanks Draiken

Draiken commented 11 years ago

Sorry for taking so long to answer, been kinda busy.

So, I think it's a simple javascript issue, on these specific elements that can be reused, instead of them actually being dragged, you clone it so it can be reused.

xta commented 11 years ago

@Draiken I wanted to check back since I'm not 100% sure what the issue is. I may have been talking about unrelated things. Is this still an open issue?

Could you provide specific steps to reproduce so that I could fix it? Thanks

Draiken commented 11 years ago

Hey, it's simple, you drag a (space) from the "1.) Drag these into (Your Configuration) above" box to "Your Configuration", and the space goes there, but then it disappears from the box you dragged from, meaning you can only ever have one space on your bash. That happens with any "regular" character that you might want to reuse.

Let's say I want [date][full hostname]. I can't do it, because when I drag the first [] pair, they are no longer in the source box. It's the same thing with the space.

I think that's it. Please tell me if I didn't make myself clear enough :)

xta commented 11 years ago

@Draiken Thank you again for your feedback and helping me understand what the issue is about. :)

This issue is working as intended. With certain options (such as space and short hostname), there are duplicates due to the initial state of Your Configuration box.

There is currently no intended way for a user to duplicate source options. One workaround today would be modifying the text in "3.) Copy this into your ~/.bash_profile" with desired duplicated configuration options.

Draiken commented 11 years ago

Okay, it's your call :)

IMHO it limits the creation of complex configurations, but then again, the site is not for the advanced users, it's intent is to simplify the process for people that never customized their bash, so I guess it's fine just changing the instruction.