qrti / funclist Goto Github PK
View Code? Open in Web Editor NEWvsCode extension to list functions, symbols, bookmarks by configurable regular expressions
License: MIT License
vsCode extension to list functions, symbols, bookmarks by configurable regular expressions
License: MIT License
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?
OSX 10.13.1
VS code 1.18.1
Version:
7.1.0
"funcList.nativeFilter": "/^[a-z]+\\s+\\w+\\(/mgi"
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.
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
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
Hello,
I'm looking for permanently and updated functions lists tab. Is it possible to configure this extension to do it?
Best regards
Is there any keyboard shortcuts other than F1, then 'show functions'? Thanks.
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.
or, alternatively, would it be very difficult to build it?
"native": "/^[_\w][\w\s\[\s+\w]+\(/mgi",
"display": "/(\S +)+(\w+)/2",
it would be highly appreciated.
thanks!
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.
(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
}
]
},_**
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
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
Hello,
clicking reference did not work with file from distant server (unc path)
Thanks for your response
i don't know how to write one filter for linux shell, please post one.
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
}
Would be nice to have the number of lines the function has as an option right next to the line with the function name.
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"
Bug
funclist
7.6.3
Darwin x64 20.3.0
1.54.3
Unable to see the functions list. There are no warnings.
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
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!
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.