ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Neo​Code​Map

by klmp200 ST4

HTML rendered code map for sublime text

Details

Installs

  • Total 31
  • Win 20
  • Mac 4
  • Linux 7
Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28
Windows 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 2 0 0 0 0 1 2 0 1 0 2 1 0 0 0 0 0 1 1 0 2 1 1 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 0 0 1 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 0

Readme

Source
raw.​githubusercontent.​com

NeoCodeMap

This plugin is inspired by sublime-codemap but using Sublime Text 4 capabilities.

It displays on the side of the editor. You can jump to symbol definition and references to it.

It supports all languages through native Sublime indexing.

preview

Specific languages features

Generic

Nesting level is guessed through indentation level.

Markdown

The package supports markdown headings.

Make your own

You can make your own Indenter and register it with register_indenter.

This looks like this for a markdown indenter:

import sublime
from CodeMapManager import indenter

def my_markdown_indenter(view: sublime.View, symbol: sublime.SymbolRegion) -> int:
    # process stuff
    return x

indenter.register_indenter("text.html.markdown", my_markdown_indenter)

The last registered indenter takes priority.

You can even override the default indenter by overriding None.

import sublime
from CodeMapManager import indenter

def my_default_indenter(view: sublime.View, symbol: sublime.SymbolRegion) -> int:
    # process stuff
    return x

indenter.register_indenter(None, my_default_indenter)

Installation

This plugins is compatible with Sublime Text >= 4132.

Package Control

The easiest way to install is using Package Control. It's listed as NeoCodeMap.

  1. Open Command Palette using ctrl+shift+P (Linux/Windows) or cmd+shift+P (OSX) or menu item Tools -> Command Palette....
  2. Choose Package Control: Install Package.
  3. Find NeoCodeMap and hit Enter.

Manual install

Clean repository in your Packages directory.

Command Palette

Press ctrl+shift+P (Linux/Windows) or cmd+shift+p (OSX). Type neocodemap to see the available commands:

  • Toggle: Toggle the code map view
  • Close All: Close all code maps on all windows
  • Move Up: Move to the next symbol on the current view
  • Move Down: Move to the previous symbol on the current view
  • Preferences: Edit preferences (see below)

Preferences

You can configure the plugin to use:

Preference Description Default
neocodemap_width Set the default width of the codemap column
The value is a percentage of the layout
It should be compride between 0 and 1 where 1 is 100%
0.20
neocodemap_position Position of the codemap
- auto: opposite position of the sidebar
- left: on left
- right: on right
auto
neocodemap_max_indent Choose the maximum indentation level to display
Using a negative value disables the limit
-1