https://github.com/prateek/vim-unstack
https://github.com/prateek/vim-unstack
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prateek/vim-unstack
- Owner: prateek
- Created: 2014-01-27T02:16:44.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-27T02:45:30.000Z (over 12 years ago)
- Last Synced: 2025-01-09T08:38:15.520Z (over 1 year ago)
- Language: VimL
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
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`.
[](https://bitdeli.com/free "Bitdeli Badge")