Code Monkey home page Code Monkey logo

folding-plugin's Introduction

Android File Grouping Plugin v1.1

Description

This plugin is very helpful in Android Development. It can display your files as a group of different folders in project structure view.

Note:

  • It does NOT move files.
  • It does NOT create folders.

Naming rules: folder name -> file name part till underscore

Before grouping

res/
    layout/
      chat_activity.xml
      chat_toolbar.xml
      chat_item.xml
      chat_share_view.xml
      home_activity.xml
      home_toolbar.xml
      home_fragment_sign_in.xml
      home_fragment_sign_up.xml

After grouping

res/
    layout/
      chat/
        chat_activity.xml
        chat_toolbar.xml
        chat_item.xml
        chat_share_view.xml
      home/
        home_activity.xml
        home_toolbar.xml
        home_fragment_sign_in.xml
        home_fragment_sign_up.xml

Installation & Usage

Installation

  1. Download latest Android File Grouping zip file here
  2. Open AS Settings, and select Plugins
  3. Click Install from disk and choose Android File Grouping.zip
  4. Restart

Usage

  1. Rick click on layout folder (or any other)
  2. In context menu click Group/Ungroup

Settings

Plugin setting can be found by path 'Settings'('Preferences' on Mac Os) -> 'Other Settings' -> 'Folding Plugin'

By default, grouping happens by part of filename which situated before first symbol underscore(_). Also, this part of filename is not hide. Patter for grouping setup as regular expression and can be change 'Setting' -> 'Other Setting' -> 'Android Folding' -> 'Use custom pattern'. 'Hide Folding Prefix' take potability hide part of filename with complete with pattern.

Default Folding default Folding with hide prefix

Limitations

The Android project view defines its own structure and does not allow modifying the structure through any extensions. Make sure your are in Project structure view, NOT Android.

Credits & License

Special thanks to beta testers.

The MIT License (MIT)

Copyright (c) 2015 Danylyk Dmytro

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

folding-plugin's People

Contributors

dmytrodanylyk 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  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

folding-plugin's Issues

File grouping config

"Naming rules: folder name -> file name part till underscore"

I often have such names: "abc_defgh_ijklmn_fragment.xml"
Therefore I'd like to have folders for "abc_defgh".
Please let the user decide which position of the underscore is taken for filtering.

Not working when in Project View - Android

It works perfectly when my Project View is Project:

works

However the moment I switch to Android it does not work anymore:

android

Even un-grouping and then grouping again does not change it.

It's could not show under the Android_edit_mode

dear Dmytrodanylyk ,
This plugin is great , I was exciting when I saw this plugin .
I tried it today , but I found a problem:
It works well under the Project_edit_mode , but not work under the Android_edit_mode,
So will you update it ?
thanks.

前缀选择

开发分很多组,我们组的资源有固定的前缀,现在版本默认以一个下划线区分的前缀进行分组,然后全分到一个组了,能不能自己选择前缀进行分组

IDE Error

Hello guys.
I cannot use this plugin on windows, because there is an unknown IDE Error.

Using: Android Studio 2.3 and plugin version 1.0
Windows 8.1

New file creation issue.

If layout folder folded, when you try to create new file inside of it(for example layout/fragment folder) - the only choice is to create c++ file. Also it would be nice if in new file popup dialog name will be filled with group name with underrisk, for example "fragment_".

Android Studio 1.4, Ubuntu 15.04

creating folder only for one item

This plugin creates folders that contain only one item. It may not be an issue but it's kind of wired! Why should we group an item. Also adding ability to customize the plugin is really helpful i like to to say for example group files that starts with fragment_ or activity_ but nothing else.
Any why, thank you for your great work.

Not working on Android Studio 2.1.2

Plugin not grouping folders with Android Studio version 2.1.2

sin titulo

When context menu 'group' option is clicked resources are not grouped. It remains the same.

android视图不分组

project视图,改成android视图的时候,看不到分组效果,能否修正一下?或者有什么解决办法?

Not working for me...

I am trying to implement this on Android Studio 1.3 but not working for me.
Please advise

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.