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

Neo​Code​Map

by klmp200 ST4 New

HTML rendered code map for sublime text

Details

Installs

  • Total 6
  • Win 3
  • Mac 0
  • Linux 3
Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17
Windows 1 1 1 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 0 0 0 0
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 0 0 0 0 0 0 0
Linux 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 has only been tested on Sublime Text >= 4200.

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