I use Flux with few tweaks. I make tweaks by hacks in flux src. Recently I readed here that Flux is very extensible. May I rewrite my hacks to Flux extension points?
Му tweaks:
Confirmation "save changes" removed and file always silently saved.
Onetime-click open file instead double-click.
Double-click launch cmd-files and print its output in flux-console.
brianMon 12 Mar 2012
If you want to email me patches I'd be glad to evaluate just merging them or at least exploring the proper hooks.
Confirmation "save changes" removed and file always silently saved.
This seems like a reasonable option we could just add directly in
Onetime-click open file instead double-click.
This seems sort of very inconsistent with desktop apps. I would be hesitate to even add it as an option. Doesn't this screw up your selection and stuff?
Double-click launch cmd-files and print its output in flux-console.
Could definitely add this as a right click menu. What extensions are you registering this on?
AkcelistoMon 12 Mar 2012
>> Confirmation "save changes" removed and file always silently saved.
This seems like a reasonable option we could just add directly in
Good. I like IDEA's all-always-saved feature.
Now I write this in ViewTab.fan:
Bool confirmClose()
{
if (dirty) save
return true
}
>> Onetime-click open file instead double-click.
This seems sort of very inconsistent with desktop apps. I would be hesitate to even add it as an option. Doesn't this screw up your selection and stuff?
This is inconsistent for common desktop app but in Flux in NavBar selection make nothing.
What extensions are you registering this on?
Mmm... Extensions? I just add few rows in NavBar.fan:
// double-click in tree
internal Void onAction(Event event)
{
if (event.data?->uri?->ext == "cmd")
frame.console.show.exec([event.data->uri->toFile->osPath])
}
// onetime-click in tree
internal Void onSelect(Event event)
{
if (event.data != null)
frame.load(event.data->uri, LoadMode(event))
}
brianWed 14 Mar 2012
I added a new GeneralOption.autoSaveTabOnClose. So you can just configure that option to true. Definitely seems like a simple generally useful option.
Not sure how far to take some of the other stuff. What I did do was make a couple of fixes to ensure that you can register your own subclass of FileResource in your own pod. Then you can do things like customize the right click menu easily. @tcolar wanted that hook too.
Akcelisto Sun 11 Mar 2012
I use Flux with few tweaks. I make tweaks by hacks in flux src. Recently I readed here that Flux is very extensible. May I rewrite my hacks to Flux extension points?
Му tweaks:
brian Mon 12 Mar 2012
If you want to email me patches I'd be glad to evaluate just merging them or at least exploring the proper hooks.
This seems like a reasonable option we could just add directly in
This seems sort of very inconsistent with desktop apps. I would be hesitate to even add it as an option. Doesn't this screw up your selection and stuff?
Could definitely add this as a right click menu. What extensions are you registering this on?
Akcelisto Mon 12 Mar 2012
>> Confirmation "save changes" removed and file always silently saved.
Good. I like IDEA's all-always-saved feature.
Now I write this in ViewTab.fan:
>> Onetime-click open file instead double-click.
This is inconsistent for common desktop app but in Flux in NavBar selection make nothing.
Mmm... Extensions? I just add few rows in NavBar.fan:
brian Wed 14 Mar 2012
I added a new
GeneralOption.autoSaveTabOnClose
. So you can just configure that option to true. Definitely seems like a simple generally useful option.Not sure how far to take some of the other stuff. What I did do was make a couple of fixes to ensure that you can register your own subclass of FileResource in your own pod. Then you can do things like customize the right click menu easily. @tcolar wanted that hook too.