Skip to content

symbols list for powershell syntax #27

Closed
Closed

Description

@nazikus

I've tried to list powershell functions in Symbol List (Ctrl-R) by adding additional preferences file. It didn't work, although this approach worked fine for my custom language syntax. How should it be done properly in this case?

I have added Packages\PowerShell\Support\PowershellSymbols.tmPreferences with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>name</key>
    <string>Functions</string>
    <key>scope</key>
    <string>source.powershell</string>
    <key>settings</key>
    <dict>
      <key>showInSymbolList</key>
      <integer>1</integer>
      <key>symbolTransformation</key>
      <string>
         s/\s*Function (\S*)/Func $1/g;
      </string>
    </dict>
    <key>uuid</key>
    <string>06532840-4879-11df-9879-0800200c9a66</string>
</dict>
</plist>

Activity

  1. FichteFoll commented on Aug 31, 2014

    @FichteFoll
    Member

    From a quick skim it doesn't look like the way the syntax definition is structured favors or enables usage of the symbol list because function definitions are not matched separately.

  2. vors commented on Dec 7, 2014

    @vors
    Member

    I totally want this 👍

  3. added this to the milestone on Feb 26, 2015
  4. vors commented on May 26, 2018

    @vors
    Member

    This is fixed now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions