Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What Text Editors support Column Block select?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1703

PostPosted: Mon Aug 07, 2017 12:50 pm    Post subject: What Text Editors support Column Block select? Reply with quote

Hi all,

Two text editors I used in Windows were Ultraedit and ConTEXT and both of these supported column-selection - Does anyone know of a Linux equivalent?

(And also, how to do it in them as maybe I already have editors that support it but just don't know how to trigger it - In the above editors you hold down Alt and drag but obviously in X that isn't possible as it'll just drag-move the current window!)


Clarification: When I say column select, I mean e.g. Normally you select like:
Code:

Words[SELECTED SELECTED SELECTED SELECTED SELEC
TED SELECTED SELECTED SELECTE]Words Words Words
Words Words Words Words Words Words Words Words
Words Words Words Words Words Words Words Words
Words Words Words Words Words Words Words Words
Words Words Words Words Words Words Words Words

but column select allows you to:
Code:

Words [SELECTED S]Words Words Words Words Words
Words [ELECTED SE]Words Words Words Words Words
Words [LECTED SEL]Words Words Words Words Words
Words [ECTED SELE]Words Words Words Words Words
Words Words Words Words Words Words Words Words
Words Words Words Words Words Words Words Words

which is great for quickly deleting and replacing prefixes/postfixes
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16534
Location: here

PostPosted: Mon Aug 07, 2017 1:54 pm    Post subject: Reply with quote

In Kate/Kwrite with crtl+shift+B or netbeans (>=7.1) there is rectangular selection tools

EDIT: I found this for others editor
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1703

PostPosted: Mon Aug 07, 2017 2:20 pm    Post subject: Reply with quote

Ooh neat, I didn't realise kwrite can do it, thanks!

That said, know of other gui editors that can do it but aren't tied to a DE...?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16534
Location: here

PostPosted: Mon Aug 07, 2017 2:26 pm    Post subject: Reply with quote

According with link that I posted in my last message app-editors/sublime-text can do it (but I don't use this text editor)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1703

PostPosted: Mon Aug 07, 2017 2:33 pm    Post subject: Reply with quote

Aww, I just had a look but apparently sublime isn't free :(
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16534
Location: here

PostPosted: Mon Aug 07, 2017 2:55 pm    Post subject: Reply with quote

dev-util/geany?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2010

PostPosted: Mon Aug 07, 2017 2:56 pm    Post subject: Reply with quote

fedeliallalinea wrote:
According with link that I posted in my last message app-editors/sublime-text can do it (but I don't use this text editor)


I can verify that sublime text 3 can do it.

<shameless plug for commercial software>
Sublime-text is NOT free software in any sense. However it's about the most reasonable and useful payware I've found. As a professional computer programmer I've been through just about every IDE and programming editor out there.

I learned the vi editor back in the mid 90s when I learned Linux. I switched to vim shortly after. Since then, in spite of having tried multiple programming editors/ide's vim has reined supreme for the things I do.

Eclipse came along and that was pretty good, I used that almost as often as I used vim. Mostly for linking calls back to the definition and that sort of thing.

Sublime came along, and this is the first editor since I started using any sort of UNIX in the mid 90s that I preferred over vim.

Sublime is a very small editor. It has what you need for really good editing, and nothing else. It has thousands of plugins, most of which are free. It has easy/convenient regex search/replace. Language syntax files are either built-in for the most common ones or come with plugins.

License: One license per human. Install on as many systems as you need, mac/windows/linux.
</plug>
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1703

PostPosted: Mon Aug 07, 2017 3:04 pm    Post subject: Reply with quote

@1clue - Cool, always good getting a positive independent review from someone that actually uses the software :)



Thankees to both of you for your input but on balance I think I'll stick with kwrite.
All these other editors seem to be very powerful and heavy-weight quasi-IDEs whereas I just wanted a small quick thing that isn't full of tabs, trees and toolbars to quickly chop bits of prefix off fixed-column-width stuff!!
Back to top
View user's profile Send private message
mike155
Apprentice
Apprentice


Joined: 17 Sep 2010
Posts: 201
Location: Frankfurt, Germany

PostPosted: Mon Aug 07, 2017 3:26 pm    Post subject: Reply with quote

If you want something light-weight, you could use joe. Ctrl-T X switches to column (rectangle) mode.
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4439

PostPosted: Mon Aug 07, 2017 4:13 pm    Post subject: Reply with quote

Ctrl+V in vim. Not implemented in busybox vi unfortunately.
_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 9539
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Aug 07, 2017 5:29 pm    Post subject: Reply with quote

Emacs, too. See Rectangles in the manual.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2010

PostPosted: Mon Aug 07, 2017 8:17 pm    Post subject: Reply with quote

FWIW sublime and pretty much every other IDE editor I've ever tried are only marginally better than vim. Having been in the Linux world for decades I've had plenty of time to talk about emacs vs vim.

Both vim and emacs are full-blown editors which work fine in a terminal and lack nothing significant when compared to gui text editors.

Both vim and emacs are free software.

IMO if you intend to be a professional programmer then you should pick one of these editors and learn it thoroughly, especially if you wind up connecting to Linux servers over the Internet. Your time will not be wasted.

There are tons of tutorials out there for both vim and emacs. Find a good one for each, and start going through them both. Decide which editor works best for you and adopt that one.

A programmer needs to have familiar tools even though the languages we work with change, often fairly frequently. Any modern app may have parts implemented in 4 or more languages, and the availability of new functionality and changing product requirements may inject a new language at any time. Your editor needs to be comfortable changing, and also needs to have enough features so that you aren't doing things the hard way all the time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum