Comments (9)
I finish to improve this request myself :)
now it can support selected group from project navigator.
Even for multiple selection or sub-group, still work well.
here is my code by compare, I can crate a new PR for you
thank you and thank for this great plugin.
from bbuncrustifyplugin-xcode.
That's great. It would be a nice addition.
I tried it but there is actually an issue: if the group has never been opened (triangle to the right), the plugin doesn't see any file inside the folder and the command "Uncrustify selected files" stay disabled. Once the folder has been opened (triangle to the bottom), it works (even if the folder is closed). I had this issue when I played with the navigator tree.
Can you reproduce this issue?
from bbuncrustifyplugin-xcode.
wow, it seem like a big problem for never un-opened group......how to get them?
from bbuncrustifyplugin-xcode.
The never unopened group cantain no child item.
So far, I did not find out a method to make this group to get its child.
But maybe could be trigger by keyboard input
, alt+ right arrow. I'm trying it.
from bbuncrustifyplugin-xcode.
hi @benoitsan
Good news, I found a method to expand those selected group, finally. and those never opened group will be loaded as well.
But here, must always return YES, "Uncrustify selected files" will always be 'enable'.
Because it is no good to expand any group when user open menu > edit.
thanks!
from bbuncrustifyplugin-xcode.
Forcing to expand a group to fix the issue is not a solution IMHO, it's more a workaround. The solution would be to find the API to get the contents of the group in any case. Right now, I'm pretty busy and don't have the time to work on this but as I said, I'm interested by this feature and will invest some time in it when I can.
from bbuncrustifyplugin-xcode.
Just take your time. thanks:)
For me, I prefer like the xcode show me what files be uncrustified, rather then hide in groups.
I'm looking forward to know your work. In the meantime, I'll try to find that API you said, Get the content from group without expanding.
from bbuncrustifyplugin-xcode.
For me, I prefer like the xcode show me what files be uncrustified, rather then hide in groups.
I was thinking about the feature and now I'm not sure if taking in account selected groups is a good idea. Like you say, uncrustifying files in hidden groups is perhaps not what the user wants.
Regarding Xcode default behavior when you drag files to the Finder, dragging multiple sources files works but dragging a group doesn't work.
There are also more complexed cases when a group + nested files are selected.
If you take this case, the Xcode behavior (just taking in account selected source files) allows you to never have ambiguous decisions to make.
from bbuncrustifyplugin-xcode.
Fixed. 624c196
from bbuncrustifyplugin-xcode.
Related Issues (20)
- Remove verbose log by default "BBUncrustifyPluginVersion loaded" HOT 1
- Crashes Xcode 7.1.1 on launch HOT 1
- indent comment after comma once and again HOT 1
- Config option to add or remove space around '=' in @property getter or setter override. HOT 2
- Is there any shared configs for Swift based projects? HOT 1
- Lacks option to explicitly select project language HOT 1
- Xcode 7.2 issue HOT 2
- Header containing CPP code is forcefuly formatted as ObjC HOT 4
- Plugin not loading in Xcode 7.3 HOT 2
- every time use Command + S to format the code , the bold style disappear , becomes normal ... HOT 1
- Space before/around exclamation operator HOT 3
- impossible to add a newline between #import & @interface HOT 1
- Not enable to set shortcuts for it HOT 1
- Use system uncrustify or clang format HOT 2
- Xcode 8 extension support HOT 1
- matting C have problems
- Xcode 8 won't load plug-ins HOT 1
- Crash in Xcode 8.1 (unsigned) HOT 3
- This plugin doesn't work completely since Xcode 9 HOT 3
- Code=3587 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bbuncrustifyplugin-xcode.