GithubHelp home page GithubHelp logo

micro-editor-stuff's People

Contributors

tommyshem avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

micro-editor-stuff's Issues

problems with indentation of snippets

Two issues, one solved.
First: If the keyword of a snippet is preceded by <tab>, the snippet does not work. That was solved with a simple edit in
snippets.lua -> CursorWord(bp):

< 		if (r == " ") then    -- IsWordChar(r) then
> 		if (r == " " or r == "\t") then    -- IsWordChar(r) then

Second: after insertion, blocks are not aligned. This is the wrong indentation:

#!/usr/bin/perl
if ($a>0) {
    if ($b>0) {
    |<wrong position for next placeholder>
}<wrong position for closing braquet>
}

It should be like this:

#!/usr/bin/perl
if ($a>0) {
    if ($b>0) {
        |<right position for next placeholder>
    }<right position for closing braquet>
}

All lines of the snippet should be indented by the same extra amount as the triggering keyword.
Many thanks for your help! Snippets are essential to a code editor!

Snippets: Is more than one shortcut allowed ?

Hi.

Great plugin, thanks.

I have tried to copy one of the vim snippet file over for micro (ada.snippet).
while playing around with that I noticed that a snippet only works if it has only one shortcut. If there is more than one one the message 'unknown snippet XXX' is shown. If the same snippet has only one shortcut it works.
I also noticed that the snippets that come with the plugin only have one shortcut.

In the help fine it says:

after snippet you can add one or more keywords for the snippets, like snippet aFunc bFunc (at least one keyword is required)

Maybe this sentence just needs to be updated, or have I maybe missed something ?

Also with this you cannot just copy the vim files if they have more than one shortcut.

Make the jump-error-plugin usable

The jump-error-plugin works great! Thank you. However, it is missing a repo.json file in order to be recognized my micro. I wrote one if you do not want to start from scratch:

[{
  "Name": "gutter",
  "Description": "Jump between linter errors",
  "Website": "https://github.com/tommyshem/micro-editor-stuff/tree/main/micro-jump-error-plugin",
  "Versions": [
    {
      "Version": "1.0.0",
      "Require": {
        "micro": ">=2.0.0-1"
      }
    }
  ]
}]

Also, the installation instructions reveal that previously this plugin had its own repository, which I think is a good idea. Anyway, please provide accurate installation instructions, so that more people can benefit from your work :)

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.