Android File Grouping Plugin

Overview

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.
Comments
  • File grouping config

    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.

    enhancement 
    opened by Rainer-Lang 16
  • Not working when in Project View - Android

    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.

    opened by vanniktech 3
  • It's could not show under the Android_edit_mode

    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.

    opened by ynheng 2
  • creating folder only for one item

    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.

    opened by alz-ahm 1
  • Not working on Android Studio 2.1.2

    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.

    opened by LNSD 0
  • Custom prefix pattern and settings UI

    Custom prefix pattern and settings UI

    It pull request is corresponding with https://github.com/dmytrodanylyk/folding-plugin/issues/1

    1. Implement set regex for folding prefix
    2. Implement possible hide folding prefix
    3. Implement setting UI for set up this settings
    opened by skyrylyuk 0
  • New file creation issue.

    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

    opened by andrey-shikhov 0
  • This project seems dead, I fork it, and want to add some new features

    This project seems dead, I fork it, and want to add some new features

    1 compose recursive, set the compose depth, for example project_widget_some_foo_view.xml to project widget some_foo_view.xml

    2 custom delimiter, for example double underscore 3 add new file from group directory, auto complete the prefix 4 any others?

    opened by BennyWang 0
  • "Hide Folding Prefix" feature shouldn't be applyed for the "other" dir

    When you have "Hide Folding Prefix" enabled in settings, "other" dir has wrong file names. It shouldn't cut prefix, because there is no prefix(that's why it is located in "other" dir).

    It works incorrectly especially with custom regexp rules

    opened by zamesilyasa 0
Releases(v1.1.1)
Owner
Dmytro Danylyk
Hello. I am Android/Kotlin Google Developer Expert. I live in Sydney - a quaint and beautiful city. I am passionate about android and flat design.
Dmytro Danylyk
A gradle plugin to optimize built jars through individual file optimizations and increased compression

Machete Machete is a gradle plugin that attempts to optimize the size of output JARs through both individual file optimizations and overall compressio

Silver 9 Nov 2, 2022
Gradle Replace In Place (GRIP): a gradle plugin to update your documentation or any file with a simple gradle task

GRIP (Gradle Replace In-Place) A gradle tool to update some values in your (documentation) files by running a task. (inspired by Knit) Directives Inse

Grégory Lureau 2 Oct 18, 2022
gradle-android-scala-plugin adds scala language support to official gradle android plugin

gradle-android-scala-plugin gradle-android-scala-plugin adds scala language support to official gradle android plugin. See also sample projects at htt

saturday06 345 Dec 10, 2022
eventbus-intellij-plugin 3.8 0.0 L1 Java Plugin to navigate between events posted by EventBus.

eventbus-intellij-plugin Plugin to navigate between events posted by EventBus. Post to onEvent and onEvent to Post Install There are two ways. Prefere

Shinnosuke Kugimiya 315 Aug 8, 2022
IntelliJ Idea Astor Plugin is a plugin that integrates Astor in Intellij Idea

IntelliJ Idea Astor Plugin IntelliJ Idea Astor Plugin is a plugin that integrates Astor in Intellij Idea. It communicates with a local/remote program

null 4 Aug 28, 2021
Intellij-platform-plugin-template - IntelliJ Platform Plugin Template

IntelliJ Platform Plugin Template TL;DR: Click the Use this template button and

null 0 Jan 1, 2022
BuildPlots-Plugin - PaperMC-Plugin for build contests written in Kotlin.

BuildPlotsPlugin PaperMC-Plugin for build contests. This is my first time using Kotlin and the first plugin I've written after a long time. It is stil

Lukas Heinzl 0 Jan 1, 2022
K6-intellij-plugin - IntelliJ-based Plugin to run k6 tests locally or in the k6 Cloud from your IntelliJ IDE

IntelliJ-based Plugin to run k6 tests locally or in the k6 Cloud from your Intel

Mikhail Bolotov 8 Jan 2, 2023
Ownership-gradle-plugin - Gradle code ownership verification plugin

Gradle code ownership verification plugin A gradle plugin that will verify owner

null 4 Dec 15, 2022
A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.

ADB Idea A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development. The following commands are provided: Uninst

Philippe Breault 2k Dec 28, 2022
IntelliJ / Android Studio plugin for Android Holo Colors

This project is not maintained anymore. Holo Colors doesn't make sense since the introduction of Material Design and the ability to set the primary co

Jérôme Van Der Linden 644 Nov 10, 2022
ADB WIFI Android Studio plugin for debug android app over Wi-Fi.

ADB WIFI ADB WIFI Android Studio plugin for debug android app over Wi-Fi. How to install in Android Studio: go to Preferences

Sutachad Wichai 298 Jan 3, 2023
GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.

Gradle Play Publisher Gradle Play Publisher is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and

null 3.9k Dec 30, 2022
IntelliJ Plugin for Android Parcelable boilerplate code generation.

IntelliJ/Android Studio Plugin for Android Parcelable boilerplate code generation This tool generates an Android Parcelable implementation based on fi

Michał Charmas 2.1k Dec 27, 2022
Android Studio plugin which automatically generates drawable selectors from appropriately named resources.

SelectorChapek for Android This Android Studio plugin automatically generates drawable selectors from appropriately named Android resources. How to in

Inmite s.r.o. 1.6k Dec 29, 2022
Maven Plugin for Android Application development and more

ANDROID MAVEN PLUGIN A plugin for Android application development with Apache Maven 3.0.5+ and the Android SDK. Please check out our website for furth

simpligility 1k Jan 4, 2023
Gradle plugin which downloads and manages your Android SDK.

DEPRECATED This plugin is deprecated and is no longer being developed. Tools and dependencies are automatically downloaded using version 2.2.0 of the

Jake Wharton 1.4k Dec 29, 2022
A Gradle plugin to support the Groovy language for building Android apps

Groovy language support for Android Deprecated: This plugin has been deprecated in favor of Kotlin which has the full support of JetBrains and Google.

Groovy programming language 853 Dec 21, 2022