1. WEE: Request for Last Open Files

One more request! smile

When I open WEE, have it open the files that were open when I last closed it.

Thank you!

new topic     » topic index » view message » categorize

2. Re: WEE: Request for Last Open Files

Ok. I pushed version .28 with this feature. It is so dang useful, I wish I had implemented it long ago.

new topic     » goto parent     » topic index » view message » categorize

3. Re: WEE: Request for Last Open Files

PeteE said...

Ok. I pushed version .28 with this feature. It is so dang useful, I wish I had implemented it long ago.

Woo hoo! Thanks! I might start using WEE more often. haha. (I use it almost exclusively now.)

new topic     » goto parent     » topic index » view message » categorize

4. Re: WEE: Request for Last Open Files

PeteE said...

Ok. I pushed version .28 with this feature. It is so dang useful, I wish I had implemented it long ago.

This version doesn't seem to be opening the files I had open upon last close. I'm guessing we're on the same page about this functionality.

Whatever files I had open last time I closed WEE, those files should be open when I restart WEE. And if I have no files open, it can just open with a blank new file.

My interpreted is opening with "wee.ex" and a blank file. The compiled just opens with a blank file.

Thanks!

It's an option setting. I didn't realize. I'll test it out! grin

new topic     » goto parent     » topic index » view message » categorize

5. Re: WEE: Request for Last Open Files

When I check "Reopen tabs next time", not only do my tabs not reopen, but all my color settings are reset. sad

new topic     » goto parent     » topic index » view message » categorize

6. Re: WEE: Request for Last Open Files

evanmars said...

When I check "Reopen tabs next time", not only do my tabs not reopen, but all my color settings are reset. sad

I get the same non-functioning/malfunctioning behavior of the "Reopen tabs next time," but I haven't changed my color settings, so that I can't confirm or deny.

new topic     » goto parent     » topic index » view message » categorize

7. Re: WEE: Request for Last Open Files

And it no longer shows line numbers...

new topic     » goto parent     » topic index » view message » categorize

8. Re: WEE: Request for Last Open Files

I didn't test on Windows, looks like a bug... hang on.

Edit: it's crashing during save_wee_conf, which is called after WinMain exits and all of the scintilla controls have been destroyed. The fix for this is to move the call to save_wee_conf to here:

   elsif iMsg = WM_DESTROY then 
	c_proc(PostQuitMessage, {0}) 
	get_window_size() 
	save_wee_conf(wee_conf_filename) 
	return rc 

But now value() is having trouble parsing the backslashes in the stored filename inside {"C:\filename", 1234, 123}. I'll have to store the filenames separately.

new topic     » goto parent     » topic index » view message » categorize

9. Re: WEE: Request for Last Open Files

PeteE said...

I didn't test on Windows, looks like a bug... hang on.

Looks like it's killing the options upon closing. Line numbering and font is at least affected.

It would be nice if the last selected open file was also selected upon opening. smile

ADD: And don't open a "New File" unless one was opened on last close. <-- this isn't important if the last selected file is selected upon restart

new topic     » goto parent     » topic index » view message » categorize

10. Re: WEE: Request for Last Open Files

Fix pushed, version .29. Really sorry about losing the configuration file with that one.

new topic     » goto parent     » topic index » view message » categorize

11. Re: WEE: Request for Last Open Files

PeteE said...

Fix pushed, version .29. Really sorry about losing the configuration file with that one.

Lookin' good! Thanks!

new topic     » goto parent     » topic index » view message » categorize

12. Re: WEE: Request for Last Open Files

Looking good!

I noticed that "allocate" wasn't colored according to the color setting for built-ins.
I added: {"function","allocate","integer",0},
to parser.e at line 1377. Seems to work.

new topic     » goto parent     » topic index » view message » categorize

13. Re: WEE: Request for Last Open Files

evanmars said...

Looking good!

I noticed that "allocate" wasn't colored according to the color setting for built-ins.
I added: {"function","allocate","integer",0},
to parser.e at line 1377. Seems to work.

allocate is not a builtin.

new topic     » goto parent     » topic index » view message » categorize

14. Re: WEE: Request for Last Open Files

Now for more requests!

  • I second euphoric's request to reopen any files that were open when WEE was shut down.
  • The ability to bold keywords, built-ins, etc.
  • The ability to add a custom list or lists of words, which can be colored/bolded.

I like to have the ability to make function calls and constants of whatever library I'm using stand out.

new topic     » goto parent     » topic index » view message » categorize

15. Re: WEE: Request for Last Open Files

jimcbrown said...
evanmars said...

Looking good!

I noticed that "allocate" wasn't colored according to the color setting for built-ins.
I added: {"function","allocate","integer",0},
to parser.e at line 1377. Seems to work.

allocate is not a builtin.

Oops. My bad. I was assuming that since peek, poke, mem_set, mem_copy were built-ins, so was allocate.
I retract my "correction."

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu