Giter VIP home page Giter VIP logo

motion's People

Contributors

arp242 avatar fatih avatar stevenh avatar vbauerster 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  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  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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

motion's Issues

Make motion -mode decls -dir ... recursive?

I suppose this is more of an issue for vim-go but my understanding is that it uses motion entirely to implement the :GoDecls and :GoDeclsDir feature so any changes would need to be made here first.

Is it possible/desirable/allowable to make the directory version of -mode decls recursive to all subdirectories? I have a gomod style project that has a number of subdirectories implementing child packages for the main codebase and it would be much more helpful if :GoDeclsDir returned every declaration across my entire codebase instead of just the ones for whatever child directory the current file I'm editing is inside.

Presumably this would be supported by an additional flag/configuration setting so as to not break backwards compatibility, I suggest either just a plain -recursive style flag or allowing the -dir flag to take multiple arguments so you could call it as -dir maindir/* or something similar.

Panics for functions without body closures

This panics:

package main

func foo(bar string)

func main() {}

This is valid AST, but not valid go program. Can easily happen during refactor or if we write new code.

named return output missing parentheses

I got following output with motion -mode decls -include func -file session.go:

{
  "keyword": "func",
  "ident": "removeFiles",
  "full": "func (s Session) removeFiles() err error",
  "filename": "/Users/vbauer/go/src/github.com/vbauerster/getparty/session.go",
  "line": 184,
  "col": 1
}

Then I pass full field to gofmt for my needs. However gofmt complains of course, because of missing parentheses:

"full": "func (s Session) removeFiles() err error",

it should be:

"full": "func (s Session) removeFiles() (err error)",

It happens only with single named return type, like (err error) in this case.

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.