ashbb / green_shoes

Green Shoes is one of the colorful Shoes written in pure Ruby.
Other
204 stars 37 forks source link

ask_open_file dialog: Can it accept default folder name? #66

Closed meruby closed 12 years ago

meruby commented 12 years ago

Is there any way to pass default folder name which ask_open_file dialog will use to show files in that folder instead of default folder.

ashbb commented 12 years ago

Hi meruby,

Thank you for the very good suggestion! I've implemented your request just now. So, try out the following with the latest gem (green_shoes 1.1.363).

Shoes.app do
  ask_open_file "c:/tmp"
end

See the commit. Hope this helps. ;-)

meruby commented 12 years ago

Hi ashbb, Thanks for your quick modification. It work perfectly.

If you don't mind I have another suggestion: In dropdown, can you allow user to type text, if what they want is not there in the selection? This modified dropdown needs to be something different than default dropdown since display value might be there in the dropdown list. My reason for this is: there are times when we learn what value user want from what they type. For ex. tagging: we want user to select from previous tagging list, but we want to allow them to type new one too.

I understand that you might not want to add this, because it is too cumbersome, or it does not go well with shoes philosophy of simplicity.

Once again thanks for quickly adding default folder option to ask_open_file.

Samir

ashbb commented 12 years ago

Thanks for the new suggestion. It's useful! So, I've implemented as Green Shoes 1.1.364. Try it out. :)

See the commit.

meruby commented 12 years ago

Hi ashbb, It work as expected. Thanks again. I realized later that I should have open another issue for this one. Samir