Feature Request

Anonymous
2010-02-16
2014-08-11

  • Anonymous
    2010-02-16

    Love your plugin , but i have one feature request.
    Currently the source cookifier reloads when I click on a new tab and also when I open a file. However if I select the file using the window manager plugin the source cookifier does not realize that the file I am viewing right now has been changed. Can it be changed to reload the tags based on the current highlighted tab(selected from the window manager)?

     
  • UFO
    UFO
    2010-02-16

    Sorry, but I can't reproduce your issue.
    Right now I've tried switching between tabs:
    -with N++ itself
    -with WindowManager
    -with FileSwitcher
    The tags got _always_ updated to show the ones of the currently selected document.

     

  • Anonymous
    2010-02-17

    hey thanks for the quick reply.
    please try if you can reproduce the bug as follows:
    1. the window manager and the source cookifier are present in the same plugin window (in my case its on the left) enabled.
        Souce Cookfier is set to single file only mode. My NPP version is 5.5.1 (dont know whether it makes a difference).
    2. I open few files on npp and see them in Source cookifier correctly.
    3. Now I go to the window manager tab and click on some other file. NPP shifts it to that view.
    4. Now I click on the source cookifier tab . Now the source cookifier is still showing the tags of the previous file.

    It works correctly for me for NPP and FileSwitcher. but not with window manager.

     
  • UFO
    UFO
    2010-02-17

    Ahhh, got it.. you're right! It's fixed now.
    There'll be a new minor version update these days due to a serious bugfix.
    greets

     

  • Anonymous
    2010-02-18

    Yayyyyy
    Looking forward to the bug fix and verson update. Thanks!

     
  • Mesmeric
    Mesmeric
    2010-10-14

    Hello, and thanks for a great plugin!

    I often use SourceCookifier to search for a function, and then may use it for browsing.
    It would be wonderful to have a button that at a single click showed all the functions again after you've filtered them. Perhaps this could even be just a double-click of the filterbox?

    Also, with screen width sometimes at a premium, i wonder if it would be possible to have it (maybe an option) so that the first level of items within the filenames is at the same indentation level as the filenames, not indented by 1. The filenames are coloured differently and stand out well so this would not be a visual issue, but it would save about 4 characters on the screen.

    one further idea, is to have the icons immediately beneath the filterbox rather than to the right, so that they would generally be visible. usually it's nice to have SourceCookifier as narrow as possible and the icons all disappear into a popmenu, but they wouldn't do this below the filter, and i don't think anyone would miss one line from the function list as a result.

    i've also found a couple of instances of using Replace All in All Open Files and SourceCookifier not updating even though the files were saved. I'd have to have a look at reproducing this if you don't know about it.

    with many thanks,

    david

     
  • Mesmeric
    Mesmeric
    2010-10-14

    In connection with the above, when you save a file, it loses the function filter and displays all the functions again
    I hit Ctrl-S save all the time, but i'll generally want the filter to remain when this happens, until i choose to remove the filter.

    Many thanks,

    david

     
  • UFO
    UFO
    2010-10-16

    hi,

    It would be wonderful to have a button that at a single click showed all the functions again after you've filtered them. Perhaps this could even be just a double-click of the filterbox?

    Actually it's the ESC button clearing the search box, which is documented and recommended. Anyway I've added a 'Clear' button meanwhile.

    Also, with screen width sometimes at a premium, i wonder if it would be possible to have it (maybe an option) so that the first level of items within the filenames is at the same indentation level as the filenames, not indented by 1. The filenames are coloured differently and stand out well so this would not be a visual issue, but it would save about 4 characters on the screen.

    Sry, that's something I won't try to implement, cuz it would kill the idea of folding whole source files.

    one further idea, is to have the icons immediately beneath the filterbox rather than to the right, so that they would generally be visible. usually it's nice to have SourceCookifier as narrow as possible and the icons all disappear into a popmenu, but they wouldn't do this below the filter, and i don't think anyone would miss one line from the function list as a result.

    Well, I would miss one line from the function list ;) Anyway I've added something to show the buttons in 2 lines meanwhile.

    i've also found a couple of instances of using Replace All in All Open Files and SourceCookifier not updating even though the files were saved. I'd have to have a look at reproducing this if you don't know about it.

    Check out the next version which might come up very soon.

    In connection with the above, when you save a file, it loses the function filter and displays all the functions again
    I hit Ctrl-S save all the time, but i'll generally want the filter to remain when this happens, until i choose to remove the filter.
    

    Check out the next version…

    thx for reports n suggestions

     
  • Mesmeric
    Mesmeric
    2010-10-18

    so many thanks for your prompt thoughts!

    i think with the search box… we install the plugin, skim the help file, then get on with using and familiarising ourself with the plugin, and never think of going back to the help file and discovering things like the ESC key to clear the filter :)
    I am thinking, an alternative idea to a clear-filter button, would be to change the popup when you are in the filter box to "Search - ESC to clear clear filter" - currently it is just "Search"; this quickly get noticed!

    take care,

    david

     
  • Mesmeric
    Mesmeric
    2010-10-19

    One more useful idea for the plugin :)
    there could be a 1st-level item at the top called "Favourites", and when you shift-click a function entry somewhere in the panel, it would add it to the favourites (and highlight-del to remove). This would be awesome for working on a series of connected functions where you jump about between them.

    another useful idea - if it were possible - would be a popup when you hover over a function - or perhaps when you ctrl-click it - showing its parameters; and/or a method that inserts the function name and its parameter definition at the current cursor point. Such a thing might perhaps be available only for a subset of languages, i'm not sure…

    all the best,

    david

     
  • UFO
    UFO
    2010-10-19

    -I will think about the tooltip thingy.
    -"Favourties" is again something to think about. It sounds interesting, but I'm not sure yet whether it won't be overkill. Talking about implementing it and the handling for the user aswell.
    -I didn't get your last suggestion, because usually signatures of functions ARE shown in the tooltip, ONLY WHEN there are signatures provided by the results of ctags of course. Also not sure about the usefulness of pasting signatures (parameter definitions) oO

    thx for the suggestions again

     
  • Mesmeric
    Mesmeric
    2010-11-02

    Hello!

    One more idea :)

    i have about 4000 lines of javascript open and other files, and this means Notepad++ starts somewhat sluggishly if sourcecookifier is visible.

    This is fine if you are planning to use it, but becomes an issue when you just want to open Notepad++ quickly to edit something small like an ini file and close again.
    I'm thinking, it would be great to have the option to start SourceCookifier in an invisible state, whatever its visibility when you last closed it. People can choose this whilst they are working on large files and hit a shortcut key to make it first visible.
    Currently i've put config.xml as read-only to achieve this, but it locks up other settings by doing so so it isn't ideal.

    Regarding function signatures mentioned before, i found an easy way was to jump to the function desired (using Ctrl-Enter or dbl-click) and use a navigation shortcut to go back again. When i'd first tried this, it hadn't seemed to work, but now it does consistently (so i think it was been my imagination it wasn't working).

    All the very best and thanks,

    david

     
  • UFO
    UFO
    2010-11-02

    I guess that makes sense again.. no big deal over here adding such option as well. cheers

     
  • spocko
    spocko
    2010-11-10

    Excellent plugin, thanks! This is a big step towards allowing NPP to work more like an IDE.

    Here are a few ideas for improvements:

    - In cookie session mode, add ability to group files in the tree view. Each group would appear as a folder/node in the tree, with ability to expand/collapse them individually (similar to folders in an Explorer tree). This would be useful for a project that has multiple targets. Each target could be a node in the tree, and the source files for that target could appear underneath. Ideally if you drag and drop a folder with subfolders onto the tree view, there would be an option to have tree nodes automatically created to mimic the folder structure. Each tree node would ideally have its own Include folder.

    - The context menu of the tree should include the available actions such as expand, collapse, go to definition, open.

    - In general, it would be nice if the tree was more "explorer like", i.e. +/- controls to expand/collapse each node, and double-click on a file would open it instead of expanding the tree. This kind of goes hand in hand with the previous suggestions. I think it would make everything more intuitive.

    - Add Options and Help buttons on toolbar within SourceCookifier window.

    - I'm probably being dense, but I don't understand what the "Navigate Forward" and "Navigate Backward" options do. These are not mentioned in the help, nor is "Go To Definition".

    - Would be nice if "Go To Definition" was added to the NPP context menu, and also as a button on the NPP toolbar. 

    Thanks

     
  • UFO
    UFO
    2010-11-21

    if "Go To Definition" was added to the NPP context menu

    That's easy to add with the last N++ version, but you have to do it yourself.. I can't override it from my side.

    also as a button on the NPP toolbar

    If will think about it. Also the help doc needs some pushing of course.
    Regarding the "explorer like" features: Some make sense, some are simply overkill, but I will see what I can do.

     
  • Hi, In version 0.5.3 there was native support for VBScript files (with extension .vbs) under Basic language. In version 0.6 we have support for Basic language, but we have not support for vbs-files. After adding this extension to Basic language some of items displayed in plugin window, but they are invalid and does not work properly.

     
  • UFO
    UFO
    2011-03-10

    Hi,
    do you have any example code or file, which worked in v0.5.4 but not in v0.6?
    Because I tried with a fresh N++ and SourceCookifier right now,
    but there was no problem with .VBS files at all.
    Also I did not change anything regarding VBS anyway.

     
  • Hi,
    I found that SourceCookifier (v0.6) works incorrectly with Unicode files, which has UCS-2 coding (2 bytes per char).
    After double-clicking on function name in SourceCookifier window the cursor actually goes to incorrect line: instead line with number N it goes to line with number (2*N - 1).
    Version 0.5.3 has no such issue,  Version 0.5.4 has the same issue
    Files with UTF-8 encoding works nice in all versions.
    I tested this behavioral only with vbs-files.

    P.S. I had problems with invalid items (SourceCookifier window contain many unrelated items: labels, different words from code) due unclean installation v0.6 over version 0.5.3. After deletion all config files and installation v0.6,  all items in window are valid (except incorrect switching to source code for UCS-2)

     
  • UFO
    UFO
    2011-03-12

    Oh, you're right, something happened inside "ctags.exe" itself between v0.5.3 and v0.5.4.
    It returns wrong line numbers. Thanks for reporting, I will investigate into that..

     
  • UFO
    UFO
    2011-03-12

    Just fixed it. That bug fix deserves a new release very soon.. cheers

     
  • Thanks a very much!
    Also I want to make request for new feature, which was announced by deemerrick in post #10:

    method that inserts the function name and its parameter definition at the current cursor point.

    But I don't need  parameter definitions, only function name.  Or some method for copying function name to buffer.

    Thanks.

     
  • UFO
    UFO
    2011-03-14

    When something is selected in the treeview, then a simple CTRL + C would put it into clipboard. That would be enough I guess?

     
  • Yes,  that would be enough. Thanks.

     
  • Michael T.
    Michael T.
    2014-08-11

    We just started using SourceCookifier for our COBOL programs. What we are finding is that it treats white space followed by any COBOL word and then followed by a period as a paragraph name. As a result statements such as END-IF. and END-EXEC. are being placed in the paragraph names. Can this be changed so that what it recognizes for paragraph names is 7-10 spaces at the beginning of the line followed by a COBOL word? That is the better definition of a paragraph name. That would still include a few extra lines, such as SOURCE-COMPUTER and OBJECT-COMPUTER, but would eliminate the great majority of the extraneous lines. If this can be done through a configuration file then please let me know how. I tried adding <RegexPatterns>"^[\s][\s][\s][\s][\s][\s][\s][A-Za-z].*"</RegexPatterns> to SourceCookifier.languages.model.xml but that is not working. I also tried adding a regular expression, in the same format, under language settings but, again, this is not working.