+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Needs a slight enhancement dashboard.vdm

Hybrid View

  1. #1

    Smile Needs a slight enhancement dashboard.vdm

    Scott,

    First and foremost a big thank you for dashboard.vdm.

    Recently,I have used quite a bit your User HOME folder location:

    Now I would appreciate having a

    User Configuration folder location:

    added to dashboard.vdm.

    Actually, I can get it from the Vedit Config_String command.
    It just would be nice to have this parameter in dashboard too.


    Thanks again for a wonderful macro.

    -peter
    Last edited by rejto; August 16th, 2012 at 12:25 AM. Reason: typo

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Location
    British Columbia, Canada
    Posts
    383
    Hi Peter,

    Long time, since we have heard from you. Hope things are going well with you.

    Attached is the enhanced dashboard-pr.vdm as requested.

    Nice to hear from you again.

    Scott
    Attached Files Attached Files
    Using Vedit 6.21.3, (32 bit), dated 9/12/11 running on Windows 7 (64 bit).

  3. #3
    Thanks Scott,

    I have downloaded your Dashboard-PR-1.vdm and it works like a charm !

    Specifically, it displays USER_CFG between the USER_Home and User_Macro parameters of Dashboard_3.0.vdm.


    I have a hunch that other Vedit users would be interested in customizing Dashboard 3.0 as well.
    So, I would appreciate having a user editable portion of Dashboard 3.0. I also have a hunch that
    I could do this on my own by using ustartup.vdm as a model. At the same time I, would appreciate
    your doing this enhancement.


    Looking forward to hearing from you.


    -peter

  4. #4
    Senior Member
    Join Date
    Aug 2011
    Location
    British Columbia, Canada
    Posts
    383
    Hi Peter,

    Not quite sure what you mean by an "user editable portion", the whole macro can be edited by an enduser.

    It really is quite easy to add things from the predefined string values:

    reg_set(20,syntax_dir) // set t-reg 20 to syntax *.syn folder
    ins_text("Syntax Folder = ") // desc of item being inserted
    reg_ins(20) // insert t-reg 20
    ins_newline(2) // insert blank line

    or here is a different example:

    reg_set(20,cur_dir) // set t-reg 20 to current folder
    ins_text("Current Folder = ") // desc of item being inserted
    reg_ins(20) // insert t-reg 20
    ins_newline(2) // insert blank line

    Hope that helps???

    Scott
    Using Vedit 6.21.3, (32 bit), dated 9/12/11 running on Windows 7 (64 bit).

  5. #5
    Scott,

    All I wanted to do is to comment the edit procedure as per your blog.
    Specifically, I have edited your Dashboard-3.0.vdm by adding the following.

    // -------- user edited part --------------------------
    // You can enable a macro by removing the "comment" character \\ in front of it.
    // Or you can you use it as a sample to write your own.
    //
    //if(#20==0) {
    //reg_set(20,user_cfg)
    //reg_set(20,"\ustartup.vdm",append)
    //#20=file_exist(@20)
    //if(#20==1) {
    //ins_text("Location of Ustartup.vdm is ")
    //ins_text(user_cfg)
    //ins_newline(2)
    //}
    //}

    if(#20==0) {
    reg_set(20,user_cfg)
    reg_set(20,"\ustartup.vdm",append)
    #20=file_exist(@20)
    if(#20==1) {
    ins_text("Location of Ustartup.vdm is ")
    ins_text(user_cfg)
    ins_newline(2)
    }
    }

    //-----------------------------------------------------

    I do hope that you will consider this stylistic change to you Version 3.0 of Dashboard.vdm.
    (Your Dashboard-PR.vdm was an edited version of your Dashboard Vesion 1.0)

    Thanks again for a wonderful program.

    -peter

  6. #6
    Quote Originally Posted by Scott Lambert View Post
    Hi Peter,

    Not quite sure what you mean by an "user editable portion", the whole macro can be edited by an enduser.

    It really is quite easy to add things from the predefined string values:

    reg_set(20,syntax_dir) // set t-reg 20 to syntax *.syn folder
    ins_text("Syntax Folder = ") // desc of item being inserted
    reg_ins(20) // insert t-reg 20
    ins_newline(2) // insert blank line

    or here is a different example:

    reg_set(20,cur_dir) // set t-reg 20 to current folder
    ins_text("Current Folder = ") // desc of item being inserted
    reg_ins(20) // insert t-reg 20
    ins_newline(2) // insert blank line

    Hope that helps???

    Scott
    Scott,

    I am re reading your email. Sure,

    "It really is quite easy to add things from the predefined string values:"

    However, dashboard does more than that !

    In particular it displays the locations of the ustartup.vdm file and it does a nice job at that. Specifically, it searches the 3 user directories, user_mac, user-cfg and user_home directories. In other words, it checks most but not all of the directories the Vedit is searching for this file. I just checked the vedit.ini file for this and this is that I found:

    "; Startup is the name of the startup macro that will be run. VEDIT searches
    ; for this file first in the current directory, then in UserCfgDir,
    ; then in UserHomeDir and last in the HomeDir directory."

    It is also like that dashboard searches the Home/Original directory for this file and displays it as a "backup copy".
    I other words, Vedit does not read this file. (So, I can put nonsens into this file and it will have no effect on Vedit.)

    Thanks again for a wonderful program.

    -peter

  7. #7
    Quote Originally Posted by rejto View Post
    Scott,

    I am re reading your email. Sure,

    "It really is quite easy to add things from the predefined string values:"

    However, dashboard does more than that !

    In particular it displays the locations of the ustartup.vdm file and it does a nice job at that. Specifically, it searches the 3 user directories, user_mac, user-cfg and user_home directories. In other words, it checks most but not all of the directories the Vedit is searching for this file. I just checked the vedit.ini file for this and this is that I found:

    "; Startup is the name of the startup macro that will be run. VEDIT searches
    ; for this file first in the current directory, then in UserCfgDir,
    ; then in UserHomeDir and last in the HomeDir directory."

    It is also like that dashboard searches the Home/Original directory for this file and displays it as a "backup copy".
    I other words, Vedit does not read this file. (So, I can put nonsens into this file and it will have no effect on Vedit.)

    Thanks again for a wonderful program.

    -peter
    Scott,

    I did a little bit more thinking about the Dashboard searchin algorithm for the ustartup.vdm file. I believe that it is perfectly possible that Dashboard finds a ustartup.vdm file which is different from the one that Vedit finds. Here is my reasoning:

    Step 1. The Dashboard algorithm starts in the user_mac directory and if it finds the ustartup.vdm file there it stops ?

    Step 2: As per my previous email, the Vedit algorithm starts in the current directory and if it finds the ustartup.vdm file
    there it stops ?

    Step 3. Therefore, if the current directory is not user_mac and if the current directory contains a ustartup.vdm file then
    these two algorithms end up with different ustartup.vdm files ?


    Once again. Do I understand it correctly? The dashboard algorithm starts searching for the ustartup.vdm file in the user_mac directory. Furthermore, if it finds the file there then it stops. My personal preference would be, if I have several ustartup.vdm files, I would like to know about them.

    So, I edited my version of Dashboard to continue searching after it finds the file. It was a minor editing job and here
    are the details:

    #20=0
    reg_set(20,user_macro)
    reg_set(20,"\ustartup.vdm",append)
    #20=file_exist(@20)
    if(#20==1) {
    ins_text("Ustartup.vdm ")
    ins_text(user_macro)
    ins_newline(2)
    }

    // if(#20==0) {
    reg_set(20,user_cfg)
    reg_set(20,"\ustartup.vdm",append)
    #20=file_exist(@20)
    if(#20==1) {
    ins_text("Ustartup.vdm ")
    ins_text(user_cfg)
    ins_newline(2)
    }
    // }

    // if(#20==0) {
    reg_set(20,user_home)
    reg_set(20,"\ustartup.vdm",append)
    #20=file_exist(@20)
    if(#20==1) {
    ins_text("Ustartup.vdm ")
    ins_text(user_home)
    ins_newline(2)
    }
    // }

    Looking forward to hearing from you.

    -peter

  8. #8
    Senior Member
    Join Date
    Nov 2014
    Location
    Minneapolis, MN
    Posts
    307

    Iam uploading an enhanced version od dashborad_3.0.vdm.

    Quote Originally Posted by Scott Lambert View Post
    Hi Peter,

    Not quite sure what you mean by an "user editable portion", the whole macro can be edited by an enduser.

    It really is quite easy to add things from the predefined string values:

    reg_set(20,syntax_dir) // set t-reg 20 to syntax *.syn folder
    ins_text("Syntax Folder = ") // desc of item being inserted
    reg_ins(20) // insert t-reg 20
    ins_newline(2) // insert blank line

    or here is a different example:

    reg_set(20,cur_dir) // set t-reg 20 to current folder
    ins_text("Current Folder = ") // desc of item being inserted
    reg_ins(20) // insert t-reg 20
    ins_newline(2) // insert blank line

    Hope that helps???

    Scott
    Hi,

    I am in the process of uploading an enhanced version of dashboard_3.0.vdm. To avoid conflict with the original one, I called it
    dashboard_3.0_pr3.vdm.

    It displays, among other things all the Vedit Configuration strings. It also displays all the Vedit File Configration Parameters.

    Recently, I needed all the Vedit Configuration parameters. So, I also added the Vedit Config() command to my vrsion of dashboard.
    Note that tis command displays an awfull lot of parameters. I tried to upload the result, but the report file exceeded the limit of this
    forum. So, I commented out.

    I think that any version of dashboard displays an awful lot of data. So, the display format is an issue. On the configuration strings, I am using the Config_Strings() command. In short I am using the original format of Tom and Ted. I must say that I do prefer that format to the one of Scott. In other words, I prefer to have no empty lines between the various configuration string commands.

    I think it would be nice to form groups of other dashboard commands as well. However, I would like to leave this question to the professional Vedit Programmers.

    Thanks as always,


    -peter
    Attached Files Attached Files

  9. #9
    Quote Originally Posted by rejto View Post
    Now I would appreciate having a

    User Configuration folder location:

    added to dashboard.vdm.

    Actually, I can get it from the Vedit Config_String command.
    It just would be nice to have this parameter in dashboard too.
    A handy way to display configuration parameters and strings is to use the snippets.vdm macro.
    In default.snp, at the end, there is section Vedit which contains items for Config display (local and global) and for Config strings.
    Double-click on the item and the selected configuration parameters are displayed in a new window/buffer.
    You can then copy the parameter name and/or contents from that window into your own macro or to File Open dialog etc.

    http://koti.mbnet.fi/pkl/vedit/misc.htm#snippets
    Pauli -- Using Vedit 6.24.2 on Windows 7 Enterprise (64 bit) and on Windows 10 (64 bit)

  10. #10

    Smile

    Thanks Pauli,

    I would like to suggest to start a new thread on snippets. I have been fascinated by snippets on the old BBS
    and I really would like to start from scratch.

    Now let me give you an informal self-survey:
    At present, I did put a command displaying the Vedit Configuration parameters on one of my user menus.
    It works like a charm. However, I do pay the usual a price for it: The commend has to be on one line and a given user menu can handle only 20 or so commands.

    Do I understand it correctly: The special case of your snippet.vdm as per your previous description, is an enhancement of the user menu of mine that executes the command "Display Vedit Configuration Strings.

    peter

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts