[JBoss JIRA] (FORGE-802) Support multiple select/pick-up/cd Resources
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-802?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-802:
----------------------------------
Fix Version/s: 2.0.0.Alpha4
(was: 2.0.0.Alpha3)
> Support multiple select/pick-up/cd Resources
> --------------------------------------------
>
> Key: FORGE-802
> URL: https://issues.jboss.org/browse/FORGE-802
> Project: Forge
> Issue Type: Feature Request
> Components: UI - Shell
> Reporter: Lincoln Baxter III
> Fix For: 2.0.0.Alpha4
>
>
> {code}/home/lincoln/projects/forge/*.java/get* [2432 selected] ${code}
> (04:17:31 PM) lincolnthree1: i was thinking it would be nice if the cd or "select" or "pick up" command accepted wildcards/filters of some sort
> (04:17:44 PM) lincolnthree1: obviously *.java works, but only in the current directory/resource
> (04:17:46 PM) lincolnthree1: so
> (04:17:54 PM) lincolnthree1: 'cd *.java' would select all the
> (04:18:00 PM) lincolnthree1: java files in the current dir
> (04:18:07 PM) lincolnthree1: but it would be really nice if you could do something like:
> (04:18:20 PM) lincolnthree1: select **/*.java
> (04:18:27 PM) lincolnthree1: or select *.java -r
> (04:18:32 PM) lincolnthree1: select -r *.java
> (04:18:40 PM) lincolnthree1: and recursively select resources
> (04:18:50 PM) lincolnthree1: from . onward
> (04:20:39 PM) stalep: sure that should work. but what do you mean by "select". selected for what?
> (04:21:11 PM) lincolnthree1: UIContext.getInitialSelection()
> (04:21:18 PM) lincolnthree1: multi-cd
> (04:22:00 PM) stalep: im my head cd is change directory, so sorry for being a bit slow with the context switching :)
> (04:22:21 PM) lincolnthree1: think of this as an advanced for of CD
> (04:22:28 PM) lincolnthree1: imagine this:
> (04:22:31 PM) lincolnthree1: cd *.java
> (04:22:34 PM) gegastaldi: pick-up might be more like it
> (04:22:38 PM) lincolnthree1: [12 java files in context]
> (04:22:43 PM) mmatloka: gegastaldi: are you ready?:P
> (04:22:50 PM) lincolnthree1: ls .
> (04:22:54 PM) gercan [~gorkem(a)217.131.48.21] entered the room.
> (04:23:03 PM) lincolnthree1: now prints out all the fields/methods of the 12 java files
> (04:23:11 PM) gegastaldi: mmatloka: for what ? Pull requests ? :)
> (04:23:13 PM) lincolnthree1: rm . would delete all 12 java files
> (04:23:18 PM) stalep: ok
> (04:23:26 PM) mmatloka: gegastaldi: for learning :D
> (04:23:27 PM) jamezp_afk is now known as jamezp
> (04:23:32 PM) lincolnthree1: so it's like "cd++"
> (04:23:41 PM) lincolnthree1: taking 'cd' to the next level
> (04:24:23 PM) stalep: so its not a cd, but more of a select as you mentioned earlier
> (04:24:39 PM) gegastaldi: cr
> (04:24:41 PM) lincolnthree1: basically
> (04:24:44 PM) gegastaldi: Select resource
> (04:24:45 PM) stalep: co cd *.java will select all methods on all java files?
> (04:24:51 PM) lincolnthree1: well
> (04:24:58 PM) lincolnthree1: cd *.java would select all java files in the current dir
> (04:25:02 PM) lincolnthree1: once you've done that
> (04:25:07 PM) lincolnthree1: you could then cd get*
> (04:25:15 PM) lincolnthree1: which would select all getters in all java files in the current directory
> (04:25:48 PM) lincolnthree1: so 'cd *.java/get*' would be the equivalent single command
> (04:25:57 PM) stalep: ok
> (04:26:07 PM) Cojan [~cvanball@2001:980:92c0:1:2677:3ff:fe7d:2620] entered the room.
> (04:26:20 PM) gegastaldi: Oh, cd as in Change Destination, not Change Directory :)
> (04:26:35 PM) lincolnthree1: then issuing an 'rm' would delete all those selected getters and drop you back to a selection of just the *.java files
> (04:27:04 PM) lincolnthree1: similarly, I guess you could do:
> (04:27:08 PM) lincolnthree1: rm *.java/get*
> (04:27:27 PM) lincolnthree1: and just imagine if autocomplete worked here
> (04:27:34 PM) lincolnthree1: serious shell power
> (04:28:26 PM) gegastaldi: There should be a way to display the selected resources in the command prompt also
> (04:28:37 PM) lincolnthree1: right
> (04:28:43 PM) lincolnthree1: so the prompt would probably say something like:
> (04:29:22 PM) lincolnthree1: /home/lincoln/projects/forge/[*.java/get*] 12 selected $
> (04:29:33 PM) lincolnthree1: actually it would probably be something like:
> (04:29:42 PM) lincolnthree1: /home/lincoln/projects/forge/[*.java/get*] 2432 selected $
> (04:29:45 PM) lincolnthree1: lol
> (04:29:50 PM) gegastaldi: Lol
> (04:30:07 PM) gegastaldi: I like the idea
> (04:30:25 PM) gegastaldi: But
> (04:30:27 PM) lincolnthree1: or maybe
> (04:30:36 PM) lincolnthree1: /home/lincoln/projects/forge/*.java/get* [2432 selected] $
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 7 months