Giter Site home page Giter Site logo

esc-emacs / idee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iocanel/idee

0.0 2.0 0.0 675 KB

Unified way to perform IDE-like tasks across multiple languages and frameworks in Emacs.

License: Apache License 2.0

Emacs Lisp 95.17% Makefile 4.83%

idee's Introduction

IDE for Emacs

Unified way to perform IDE-like tasks across multiple languages and frameworks in Emacs.

./doc/images/idee-ide-view.png

Features

  • Integration with projectile, treemacs and yasnippet.
  • Global shortcuts and functions for all languages and frameworks.
  • Traditional IDE-like swapable layouts.
  • Advanced navigation control (back and forth).
  • File template support.
  • File header management.
  • Project factory support.

Overview

The initial idea behind this project was to provide an IDE-like window layout (project tree, editor & command line interface). This is functionality already provided by existing plugins, so this plugin was meant to better integrate these plugins.

Global shortcuts and functions for all languages and frameworks.

Golang developers may be using the oracle or guru, two different plugins with similar functions. To jump to the definition of a symbol guru users use `go-guru-definition` while oracle users use `go-oracle-definition`. In python the same functionality is provided by `anacoda-mode-find-definitions` (for anacoda users) and so on.

The more languages and frameworks added, the harder it gets to remember the right functions and their shortcuts.

This plugin provides a gloabl set of functions and shortcuts that works for all underlying modes, languages and frameworks. Also this is backed by a hydra, which makes these functions easier to remember.

./doc/images/idee-hydra.png

Advanced navigation control

Jumping to a symbols definition, finding callers, looking up functions etc, is of no use if you can’t easily return to the point from which the query was originated. Some plugins do provide `jump back` functionality, others don’t. Even the ones that do provide `jump back` most of the time don’t provide `jump further back` or `jump forth`. And of course this is something that doesn’t play nicely in polyglot projects or even across different projects.

This plugin does provide the following functions:

  • idee-jump-back
  • idee-jump-forward
  • idee-forget-current-buffer (remove the current buffer/point from the back/forth stacks).

File template support

For code snippets yasnippet has been an excellent choice. I often use yasnippet to provide a full-file template. But I always felt that there should be a line between snippets and templates (even though if the backing plugin is the same, e.g. yasnippet).

Why?

Because, I’d like the file template mechanism to kick in automatically when a new file is created. And this is how this plugin approaches file templates:

How it works?

When a new file is created, the plugin checks the file extension and detects the corresponding major mode that is going to be used. Then it searches for the target major mode, all available file templates that are found under <template dir>/<major mode>. A list of all available templates is provided to the user and after the user selected a new file based on the template is created.

For example for java files, the list of available templates can be: (“class”, “annotation”, “enum”, “interface”).

./doc/images/idee-file-templates.png

File header management

Open-source developers are familiar with the processes of adding license headers to their files. But even if this is a pretty common use-case nowadays, even commercial IDE doesn’t have a good story around that. Most of the times, this is a configuration that needs to be performed per project with very little room for re usability.

This project introduces the idea of `global license header repository` that its a folder that users can store multiple different header profiles, which can then be selected per project.

./doc/images/idee-select-header.png

Regardless, of how you specify the header of choice, you can add a call to `idee-header` in your file template, so that all new files create contain the header.

./doc/images/idee-file-template.png

Project factories

Each language and framework has its own way of creating or scaffolding a project. The idea behind project factories is to allow integrating these approaches into this plugin, so that its easy to create new project.

Each time the users want to create a new project, he is prompted to select one among the known project factories. Then the factory is invoked to generate the project. The factory may or may not require further input.

A list of potential project factories:

  • A maven archetype factory.
  • A Spring intializer factory.
  • A JBoss forge factory.
  • A lein factory.
  • A cask factory.
  • and more.

Spring intializer project factory

A simple project factory that uses https://start.spring.io to scaffold a new project.

./doc/images/idee-spring-project-factory-1.png

The factory prompts the user to select from a list of:

  • languages
  • build tools
  • dependencies

and then it generates and opens the project.

idee's People

Contributors

iocanel avatar

Watchers

James Cloos avatar Eric Crosson avatar

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.