An open API service indexing awesome lists of open source software.

https://github.com/prateek/vim-unstack


https://github.com/prateek/vim-unstack

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

unstack.vim
=============

Parse stack traces or quickfix entries and open the result in vim splits!

Go from this:

To this!

Version 0.4.1

No backwards compatability is guaranteed at this time.

Usage
-----
Visually select part/all of a stacktrace and hit `s`. If you want to use a different map key, put `let g:unstack_mapkey=` (replacing `` with the key of your choice.)

You can also copy a stack trace to your system clipboard (from any program) and run `:UnstackFromClipboard`.

If this results in too many vsplits crowding the screen, consider taking a look at the [accordion](https://github.com/mattboehm/vim-accordion) plugin (shameless plug).

Signs
-----
By default, Unstack uses signs to highlight lines from stack traces in red. Signs are removed when the tab they were created in is closed. Sometimes a sign will appear to stick around after it's been removed until you switch tabs again. If you want to disable this feature add `set unstack_showsigns=0` to your .vimrc.

Portrait Layout
---------------
If you want the levels of the stack to open in hsplits (top to bottom instead of left to right), add the following to your .vimrc:

let g:unstack_layout = "portrait"

Supported Languages
-------------------
Currently the following stack traces are supported:

* Python
* Ruby
* C#
* Perl
* Go
* Node.js
* Erlang (R15+)

Is there another language you'd like supported? Open an issue with some sample stack traces or read on to learn how to add custom languages (pull requests welcome).

Customizing Languages
---------------------
Unstack can easily be extended to support additional stack trace formats. Check out `:help unstack_extractors` and `:help unstack_regex_extractors` for more information.

Feel free to submit pull requests or open issues for other stack trace languages.

License
-------
Copyright (c) Matthew Boehm. Distributed under the same terms as Vim itself.
See `:help license`.

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/mattboehm/vim-unstack/trend.png)](https://bitdeli.com/free "Bitdeli Badge")