GithubHelp home page GithubHelp logo

terokarvinen / micro-jump Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 4.0 54 KB

Jump to any function, class or heading with F4. Go, Markdown, Python, C... (+40 others). A plugin for micro editor.

Home Page: https://terokarvinen.com/tags/micro-editor/

License: MIT License

Lua 100.00%
micro-editor plugin ctags fzf ide go golang markdown micro-editor-plugin outline

micro-jump's Introduction

micro-jump - Jump to function

Jump to any function, class or heading with F4. Go, Markdown, Python, C... A plugin for micro editor.

Screenshot - Jump to a function with F4 - Jump plugin for Micro

Supports 40+ languages

Jump supports all languages supported by your ctags. My 'ctags --list-languages' has 44 entries: Ant, Asm, Asp, Awk, Basic, BETA, C, C++, C#, Cobol, DosBatch, Eiffel, Erlang, Flex, Fortran, Go, HTML, Java, JavaScript, Lisp, Lua, Make, MatLab, ObjectiveC, OCaml, Pascal, Perl, PHP, Python, REXX, Ruby, Scheme, Sh, SLang, SML, SQL, Tcl, Tex, Vera, Verilog, VHDL, Vim, YACC, markdown.

Install

On Debian

$ sudo apt-get update
$ sudo apt-get -y install micro fzf exuberant-ctags
$ micro --plugin install jump

For other distributions and operating systems, see help/jump.md.

Micro-jump is probably easy to install on most Linuxes. It's not known to work on Windows.

Use F4 to Jump

$ micro tero.py

Write some Python. Jump also supports Go, C, JavaScript...

def hello():
    print("hello")

def bar():
    print("bar")

def foo():
    print("foo")

Ctrl-S Save.

Press F4 to jump. Use up and down arrows to select a function. You can also type part of the name. Press enter to jump.

Markdown

Writing books, are we? Markdown support & interactive table of contents are explained in help/jump.md.

See also

micro-run Press F5 to save and run the current file, F12 to make, F9 to make in background

Copyright 2020-2022 Tero Karvinen https://TeroKarvinen.com Code repository https://github.com/terokarvinen/micro-jump MIT license

micro-jump's People

Contributors

jessecrossen-vt avatar terokarvinen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

micro-jump's Issues

Elixir support ๐ŸŽ‰๏ธ

OS: Ubuntu 20.04.4 LTS


Hello,

Nice plugin :)

I'm barely familiar with exuberant-ctags but it seems universal-ctags is more feature-full and should be recommended?

$ apt-get install exuberant-ctags
$ ctags --list-languages | wc -l
43
$ apt-get remove exuberant-ctags && snap install universal-ctags
$ ctags --list-languages | wc -l
144

Some work went into supporting Elixir here: universal-ctags/ctags#2034

And all seems to work well with that latter package.

Jumping in an unsaved file causes an error

Jumping when the current file is unsaved causes an error to flicker before opening fzf with no results.

The error is:

ctags: Warning: cannot open source file "" : No such file or directory

Not sure how to best handle this. Maybe make F4 a no-op if the file is unsaved?

f4 closes micro

ctrl+e
plugin install jump
close micro
open a file with micro
press f4

result: f4 closes micro

shouldn't it "Jump"?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.