flat assembler
Message board for the users of flat assembler.

Index > IDE Development > [Feature Req.] Allow Fasmw to Remember Last Opened Files

Author
Thread Post new topic Reply to topic
chris



Joined: 05 Jan 2006
Posts: 62
Location: China->US->China->?
chris
Anyone know some small tweaks to make Fasmw remember and reopen the last opened files? So that I can resume the work immediately after launching the IDE... Thanks a lot.
Post 04 Jun 2011, 15:38
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

the last file opened or the last file loaded ?

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 05 Jun 2011, 10:10
View user's profile Send private message Send e-mail Reply with quote
klavs.pr



Joined: 20 Apr 2010
Posts: 20
Location: Latvia
klavs.pr
chris, do you mean it just like notepad++ opens previously used files when launching?
Post 05 Jun 2011, 10:52
View user's profile Send private message Reply with quote
chris



Joined: 05 Jan 2006
Posts: 62
Location: China->US->China->?
chris
ouadji wrote:

the last file opened or the last file loaded ?

klavs.pr wrote:

chris, do you mean it just like notepad++ opens previously used files when launching?


Yeah, I mean the last files loaded into the Fasmw IDE, just like the functionality of notepad++. Thanks.
Post 06 Jun 2011, 15:22
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

I think it would be better the last file opened ... loaded + selected
(the last file with the focus)
I will add this feature to wink.
before closing wink, just put the focus on the chosen file!
This allows you to choose any file.
Use the last file loaded doesn't allow to choose.
What do you think about it ?

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 06 Jun 2011, 23:38
View user's profile Send private message Send e-mail Reply with quote
chris



Joined: 05 Jan 2006
Posts: 62
Location: China->US->China->?
chris
ouadji wrote:

I think it would be better the last file opened ... loaded + selected
(the last file with the focus)
I will add this feature to wink.
before closing wink, just put the focus on the chosen file!
This allows you to choose any file.
Use the last file loaded doesn't allow to choose.
What do you think about it ?


the thing is that, when you work on a project using Fasmw, you usually have several files loaded into the IDE at the same time(of course only one of them has the focus). When you close the IDE, it won't remember the files and next time if you want to resume the last project, you have to locate these files in the open-file-dialog-box and pick them up again and sometimes these files may not reside in a single directory...Sad

so the feature I requested is that when exiting Fasmw IDE, it should remember the files currently loaded, and next time you launch the IDE it should reload these files automatically.

Perhaps it's not a bad idea to make Fasmw keep a history of recently opened files like many other IDEs, and of course, to me, this is another desirable feature. Wink

Thanks ouadji for your patience and reply and of course your wink! Very Happy
Post 07 Jun 2011, 15:42
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

ok, understood ! all last files, like notepad++
I am currently developing this functionality for Wink.
The next Wink will also allow the use of a command line (for "run")

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 07 Jun 2011, 18:24
View user's profile Send private message Send e-mail Reply with quote
asmhack



Joined: 01 Feb 2008
Posts: 431
asmhack
Code:
82:   _key_recent             db 'Recent',0 ;ini key
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

1141: cmp     eax,IDM_RECENT ;menu code
      je        recent
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

1230: invoke  WritePrivateProfileString,_section_environment,_key_recent,path_buffer,ini_path ;store 
open_recent: ;continue
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

1345:   recent:
  invoke  GetPrivateProfileString,_section_environment,_key_recent,path_buffer,path_buffer,1000h,ini_path ;get
        jmp     open_recent ;jump to continue   
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

3239: IDM_RECENT         = 1111 ;menu handle
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

3317: menuitem '&Recent...' _ 'Ctrl+R',IDM_RECENT ;menu data (here we can use classic popup flag and so on..)
          menuseparator 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

3375: FVIRTKEY+FNOINVERT+FCONTROL,'R',IDM_RECENT,\  ;hotkey
    


The above code is a lazy fix that will add support to fasmw ide, to open last opened file, using either the menu or ctrl+r.
The settings are stored inside the original fasmw.ini file, that means we have all the variables ready to work with.


Description: file: \SOURCE\IDE\FASMW\FASMW.ASM
Download
Filename: FASMW.ASM
Filesize: 96.22 KB
Downloaded: 261 Time(s)



Last edited by asmhack on 08 Jun 2011, 18:00; edited 1 time in total
Post 08 Jun 2011, 14:17
View user's profile Send private message Reply with quote
ouadji



Joined: 24 Dec 2008
Posts: 1081
Location: Belgium
ouadji

Wink 6.87 is available

with option :
save and restore current files
this, "on" or "off" (control panel)

(also, a command line editor --> run)

_________________
I am not young enough to know everything (Oscar Wilde)- Image
Post 08 Jun 2011, 15:59
View user's profile Send private message Send e-mail Reply with quote
chris



Joined: 05 Jan 2006
Posts: 62
Location: China->US->China->?
chris
asmhack wrote:


The above code is a lazy fix that will add support to fasmw ide, to open last opened file, using either the menu or ctrl+r.
The settings are stored inside the original fasmw.ini file, that means we have all the variables ready to work with.


thanks for the code, but it seems to restore the last opened file when Fasmw is running, while I hoped that it can restore the last loaded files the next time Fasmw is launched, but thanks anyway!
Post 09 Jun 2011, 15:12
View user's profile Send private message Reply with quote
chris



Joined: 05 Jan 2006
Posts: 62
Location: China->US->China->?
chris
ouadji wrote:

Wink 6.87 is available

with option :
save and restore current files
this, "on" or "off" (control panel)

(also, a command line editor --> run)


Thanks ouadji, I am using it now. admire your passion and speed!
Post 09 Jun 2011, 15:14
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.