GithubHelp home page GithubHelp logo

funclist's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

funclist's Issues

feature request: languadge depended regexps

Hi,
Thanks for the work!

I would like to suggest a feature to make possible to opt a regexp depending on the file language is edited.

E.g. to add an option of map [lang: regexp, lang2: regexp2] and if the file type matches on of the file type it uses a particular regexp otherwise It continues to use the global one.

Thanks a lot in advance,
Mik

[solution] RegEx for NSIS scripts (Nullsoft Scriptable Install System)

Hello. This RegEx to build functions and sections list for NSIS script.
"native": "/(?:^|\s)(?:Functio|Section)(?:n\s|\s\42)\.?\w+/mgi",
"display": "/\s*(?:Functio|Section)(?:n\s|\s\42)\.?(\w+)/1",

Example
function fname
section "installing maker" secInstall

funcList result will be:

fname
installing

Ruby Language method listing help

Hi There,

I am wondering what would be the correct json for Ruby methods and classes in .rb file
I'm having hard time with coming up regexes'
Examples
class MSExcel
def initialize
end
end
Also you can have methods not attached to a class such as
def methodname(var1,var2)
end

I would appreciate if you could list the complete json.

Thanks

sort methods by class name

Hello,

Is it possible to list in a file a table with all functions of a PHP project sorted by class name (a column with class name, another one with method name)?

Thanks!

Insert newlines between functions in list

I really like this extension. I have modified the settings to produce this type of list:

clearSearchInput()
getQuery(event)
getSearchSpecialsQuery(evt)
escapeRegExp(string)
searchTree(query2)

I would like to be able to insert a newline between each entry to make the list easier to read. The settings I am using:

// so that "function someName(arg1, arg2) is captured
"funcList.nativeFilter": "/^[a-z]+\\s+\\w+\\s*\\(.*\\)/mgi",
// now display "someName(arg1, arg2)"
"funcList.displayFilter": "/\\S* +(\\w+\\s*\\(.*\\))/1"

Will funclist support golang

there is my config:
"funcList": {
"doubleSpacing": false,
"filters": [
{
"extensions": [
".go",
".h"
],
"native": "/^[a-z]+\s+(\(([a-z]+)\s\([a-z]+)\)\s)?\w+\(/mgi",
"display": "/.
/",
"sort": 0
}
]
}
display methods is well,but goto method not work if it's a func of struct.

[HELP] Keyboard shortcut example

I'm new to VSCode and would like your help. I'm trying to set up a keyboard shortcut for funcList for Python. The Python part works great but I'm lost as to how to set up the keyboard shortcut mapping in VSCode that will do the same thing as F1>Show Functions. I'd like your help. An example would be great.

Thanks.

I have tried., without success:
{
"key": "ctrl" "a",
"command": "extensions.action.showFunction",
"when": "editorTextFocus"
}

It doesn't like the "key" or the "command". The "key" I can probably figure out but do not have a clue as to what the "command" should be.

Functions list permanently open

Hello,
I'm looking for permanently and updated functions lists tab. Is it possible to configure this extension to do it?

Best regards

Abnormal resolution

file extension:c
static inline int function1(int a)
static void function2(int b)

The above two cases cannot be resolved
I have modified the configuration file: native: / ^ [a-z] + \ \ s +. * {] [) $/ img

Do not show functions after last VSC update.

(by translator)
I'm not sure which VSC update, but the extension stopped working properly.

Follow my extension config and a sample file ( rename to .prw ).

Thank You.

**_"funcList": {
    "doubleSpacing": false,
    "filters": [
        {
            "extensions": [
                ".PRW",
                ".prw",
                ".PRX",
                ".prx",
                ".PRG",
                ".prg"
            ],
            "native" : "/\\b(method [a-z0-9() ,]+ cla|wsservice [a-z0-9].*|wsmethod [a-z0-9]+.*ws.*|static function .*|user function .*|wsstruct .*)+/ig",
            "display": "/\\b(method|wsservice|wsmethod|static function|user function|wsstruct)+\\s{1}[a-z0-9_]+/0i",
            "sort": 0
        }
    ]
},_**

RGENM110.txt

Feature Request -

If we write comments right above the functions, or consistently enclosed between some characters, e.g. between """ """ for a python function, that starts on a line right above it or something, then we can have an option to show those comments right next to the function list generated. Will give a brief overview about all the functions in a file.

Also, I refactor my code to multiple files, so, it would be nice to select files for the function list, and it could output text file with all the function names under a heading like so, fileA and then right below it all the functions, say fun1a , fun2a etc mentioned below it - with all the function descriptions scraped from above suggestion.

That'll make it a good overview of the project for someone who has just started reading the codebase.

Request:Count number of lines?

Would be nice to have the number of lines the function has as an option right next to the line with the function name.

Multiple keyword

Please i want to add .4gl files, but it use

FUNCTION name()
END FUNCTION
REPORT  name()
END
MAIN
END MAIN

How can i do work with that keywords??.

Actually just work for FUNCTION

thanks

[HELP]: Filter configuration not working

Hi,

I recently discovered your extension, and i started to test it. I develop FPGA by using VHDL language.
So i try to setup my own filter, but it doesn't work.

Here's a very simple line from my file:

signal toto : std_logic;

And my filter:

"funcList": {
    "doubleSpacing": false,

    "filters": [
      {
        "extensions": [
          ".vhd",
          ".vhdl"
        ],
        "native": "/^\\s*signal\\s+\\w+/mgi",
        "display": "/.*/"
        "sort": 0
      }
    ]
  }

I try my regex with an online website, and it works fine. But when i call the "show function", a new tab appears with no matches.

I don't see my mistakes.

Best regards,
Mathieu

Clicking reference did not work

Clicks just place cursor and do nothing.

My settings is:

"funcList.nativeFilter": "/(?:^|\\s)function\\s+\\w+\\(/mg",
"funcList.displayFilter": "/\\s*function\\s+(\\w+)/1",

Tested on ts and php files.

No Filter fo Filetype

Hi

Thanks for this great extension. Unfortunately the latest update has broken this extension for me as I now get the error "no filter for filetype". I have tried checking the config for "filters.extensions" to try and update it with my extension (*.mq4) but it says this is an unknown configuration setting. I have also tried uninstalling and reinstalling but it hasn't helped. Any advice on how to make this work again please?

Extension issue

  • Issue Type: Bug
  • Extension Name: funclist
  • Extension Version: 7.6.3
  • OS Version: Darwin x64 20.3.0
  • VSCode version: 1.54.3

⚠️ We have written the needed data into your clipboard. Please paste! ⚠️

Unable to see the functions list. There are no warnings.

Filtering not working for PowerShell functions

Cannot get filtering working for PowerShell functions. I have thoroughly tested the regex statements which work everywhere except within this extension. Here are the settings I am using:

"funcList.nativeFilter": "/function\\s+\\w+-?\\w*\\s*{/img"
"funcList.displayFilter": "/(?![function])(?!\\s+)\\w+-?\\w*/img"

Search string example:

Function Verb-Noun {
     #Some filler here
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.