Re: [Qt-creator] Sorting lines
Hi, Is there a feature/plugin/way to get line sorting available in Qt Creator? I remember KDevelop had this ability to send a selection through an external program, in this case, sort. I have a patch in the queue that allows to sort lines. Unfortunately I did not submit it yet. If you build your qtcreator on your own, I can send you the patch if you like. Another way to sort lines is to use !sort in fakevim, if you use this :-). I'm looking forward to your patch, so I hope you will have time to submit it. :-) There is an open task about this here: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-913 here is my merge request: http://qt.gitorious.org/qt-creator/qt-creator/merge_requests/141 As I wrote in the request: I wrote the patch a year ago and did not review it again. Though I'm using it since then and I am pretty happy with the feature. Feel free to criticize if you find room for improvements :-). take care, have fun /christian ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On Thursday 29 April 2010 22:51:25 Craig Bradney wrote: On 4/29/10 10:27 PM, Craig Bradney wrote: On 4/29/10 10:54 AM, André Pönitz wrote: On Wednesday 28 April 2010 22:02:24 ext Craig Bradney wrote: Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Works for me, just checked. Does any ! command work for you? Hmm.. nope :(.. the plugin does activate though when I hit Alt V Alt V Qt Creator is at Qt Creator 1.3.81, ie the 2.0 alpha. Same with the latest Qt Creator 1.3.83 snapshot.. strange. Just a quick guess: May it be that you use windows and on windows there is no sort cmd and therefore it only works on linux? AFAIK !sort just runs the /usr/bin/sort on linux?! take care, have fun /christian ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On 4/29/10 11:19 PM, Andre Poenitz wrote: On Thu, Apr 29, 2010 at 10:27:28PM +0200, Craig Bradney wrote: On 4/29/10 10:54 AM, André Pönitz wrote: On Wednesday 28 April 2010 22:02:24 ext Craig Bradney wrote: Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Works for me, just checked. Does any ! command work for you? Hmm.. nope :(.. the plugin does activate though when I hit Alt V Alt V So in order to sort, say, three lines, you do something like Alt-vAlt-v:.,.+2!sortReturnAlt-vAlt-v or Alt-vAlt-vShift-vDownDown:!sortReturnAlt-vAlt-v ? This both works here. Qt Creator is at Qt Creator 1.3.81, ie the 2.0 alpha. This is pretty old code, I think it was already in 1.3.0, so your version should be fine. Do you have a 'sort' in your path? [Silly question...] A Alt-vAlt-vShift-vDownDown:!sortReturnAlt-vAlt-v works.. I was hoping for mouse selection.. so I guess I was sorting just one line before! Yes, sort is in the path (Snow Leopard). Thanks! Craig ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On Apr 28, 2010, at 10:02 PM, ext Craig Bradney wrote: On 4/28/10 8:57 PM, Craig Bradney wrote: On 4/28/10 12:26 PM, Thorbjørn Lindeijer wrote: On 04/27/2010 10:17 PM, ext Christian Hoenig wrote: Hi, Is there a feature/plugin/way to get line sorting available in Qt Creator? I remember KDevelop had this ability to send a selection through an external program, in this case, sort. I have a patch in the queue that allows to sort lines. Unfortunately I did not submit it yet. If you build your qtcreator on your own, I can send you the patch if you like. Another way to sort lines is to use !sort in fakevim, if you use this :-). I'm looking forward to your patch, so I hope you will have time to submit it. :-) There is an open task about this here: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-913 Regards, Bjørn Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Maybe you need to run a Qt Creator snapshot (I'm not sure when the sort was implemented). Also not that you need to type a ':' as well, i.e. select, alt-v,alt-v, :!sort -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On Wednesday 28 April 2010 22:02:24 ext Craig Bradney wrote: Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Works for me, just checked. Does any ! command work for you? Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On 4/29/10 10:54 AM, André Pönitz wrote: On Wednesday 28 April 2010 22:02:24 ext Craig Bradney wrote: Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Works for me, just checked. Does any ! command work for you? Hmm.. nope :(.. the plugin does activate though when I hit Alt V Alt V Qt Creator is at Qt Creator 1.3.81, ie the 2.0 alpha. Craig ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On 4/29/10 10:27 PM, Craig Bradney wrote: On 4/29/10 10:54 AM, André Pönitz wrote: On Wednesday 28 April 2010 22:02:24 ext Craig Bradney wrote: Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Works for me, just checked. Does any ! command work for you? Hmm.. nope :(.. the plugin does activate though when I hit Alt V Alt V Qt Creator is at Qt Creator 1.3.81, ie the 2.0 alpha. Same with the latest Qt Creator 1.3.83 snapshot.. strange. Craig ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On Thu, Apr 29, 2010 at 10:27:28PM +0200, Craig Bradney wrote: On 4/29/10 10:54 AM, André Pönitz wrote: On Wednesday 28 April 2010 22:02:24 ext Craig Bradney wrote: Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Works for me, just checked. Does any ! command work for you? Hmm.. nope :(.. the plugin does activate though when I hit Alt V Alt V So in order to sort, say, three lines, you do something like Alt-vAlt-v:.,.+2!sortReturnAlt-vAlt-v or Alt-vAlt-vShift-vDownDown:!sortReturnAlt-vAlt-v ? This both works here. Qt Creator is at Qt Creator 1.3.81, ie the 2.0 alpha. This is pretty old code, I think it was already in 1.3.0, so your version should be fine. Do you have a 'sort' in your path? [Silly question...] Andre' ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On 04/27/2010 10:17 PM, ext Christian Hoenig wrote: Hi, Is there a feature/plugin/way to get line sorting available in Qt Creator? I remember KDevelop had this ability to send a selection through an external program, in this case, sort. I have a patch in the queue that allows to sort lines. Unfortunately I did not submit it yet. If you build your qtcreator on your own, I can send you the patch if you like. Another way to sort lines is to use !sort in fakevim, if you use this :-). I'm looking forward to your patch, so I hope you will have time to submit it. :-) There is an open task about this here: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-913 Regards, Bjørn -- Thorbjørn Lindeijer Software Engineer Nokia, Qt Development Frameworks ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
On 4/28/10 8:57 PM, Craig Bradney wrote: On 4/28/10 12:26 PM, Thorbjørn Lindeijer wrote: On 04/27/2010 10:17 PM, ext Christian Hoenig wrote: Hi, Is there a feature/plugin/way to get line sorting available in Qt Creator? I remember KDevelop had this ability to send a selection through an external program, in this case, sort. I have a patch in the queue that allows to sort lines. Unfortunately I did not submit it yet. If you build your qtcreator on your own, I can send you the patch if you like. Another way to sort lines is to use !sort in fakevim, if you use this :-). I'm looking forward to your patch, so I hope you will have time to submit it. :-) There is an open task about this here: http://bugreports.qt.nokia.com/browse/QTCREATORBUG-913 Regards, Bjørn Great, I have now voted for this one, and will test out fakevim options in the meantime. Hmm fakevim does little to nothing.. the mode kicks in, but running the !sort does nothing apart from deselect the text selection Craig ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
[Qt-creator] Sorting lines
Hi Is there a feature/plugin/way to get line sorting available in Qt Creator? I remember KDevelop had this ability to send a selection through an external program, in this case, sort. thanks Craig ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Sorting lines
Hi, Is there a feature/plugin/way to get line sorting available in Qt Creator? I remember KDevelop had this ability to send a selection through an external program, in this case, sort. I have a patch in the queue that allows to sort lines. Unfortunately I did not submit it yet. If you build your qtcreator on your own, I can send you the patch if you like. Another way to sort lines is to use !sort in fakevim, if you use this :-). take care, have fun /christian ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator