go-direx icon indicating copy to clipboard operation
go-direx copied to clipboard

Tree style source code viewer for Go language

go-direx.el melpa badge melpa stable badge

Introduction

You can view go code in a tree style viewer with direx.el.

Screenshot

go-direx1

Requirements

You can install direx with package.el from MELPA. And you can install gotags by go get as below.

% go get -u github.com/jstemmer/gotags

Installation

go-direx is available on MELPA and MELPA stable

You can install go-direx with the following command.

M-x package-install [RET] go-direx [RET]

Setup

(require 'go-direx) ;; Don't need to require, if you install by package.el
(define-key go-mode-map (kbd "C-c C-j") 'go-direx-pop-to-buffer)

Working with popwin

(require 'popwin)
(setq display-buffer-function 'popwin:display-buffer)

(push '("^\*go-direx:" :regexp t :position left :width 0.4 :dedicated t :stick t)
      popwin:special-display-config)

Show buffer on right side

go-direx2

(push '("^\*go-direx:" :regexp t :position right :width 0.4 :dedicated t :stick t)
      popwin:special-display-config)