Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Other Forums > Chit-Chat


Chit-Chat Relax for a bit and have a general conversation (off topic is allowed!) with other members. Please be polite and respect your fellow members.

Reply
 
LinkBack Thread Tools Display Modes
Old 24th June 2008, 04:25 PM   (permalink)
Default Bring back the <CTRL> Y (line delete) in editors

I guess I'm old school but boy do I wish that <CTRL> Y (an old WordStar keyboard shortcut) was not missing in many modern editors.
<CTRL> Y will simply delete the entire line where the cursor is.
Example Swordfish BASICs IDE does use it
MPLAB does not
I guess I'll have to dig into MPLABs options to see if there is a way...
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com

Last edited by blueroomelectronics; 24th June 2008 at 04:26 PM.
blueroomelectronics is offline  
Old 24th June 2008, 04:37 PM   (permalink)
Default

I use it all the time in VB. It should be compulsory in all software.

Mike.
Pommie is offline  
Old 24th June 2008, 04:57 PM   (permalink)
Default

I use <END><SHIFT+HOME><BACKSPACE>...like the good old days before <CTRL> keys existed.

Wordstar...was that the DOS text software? I remember vaguely of using it a very very very very long time ago.
__________________
NO, that picture isn't me so don't bother asking if we can be friends.

Last edited by dknguyen; 24th June 2008 at 04:58 PM.
dknguyen is offline  
Old 24th June 2008, 05:15 PM   (permalink)
Default

Wordstar commands are going back a LONG time, if I remember correctly Borland DOS IDE's were Wordstar compatible.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 24th June 2008, 07:25 PM   (permalink)
Default

I simply don't use editors which don't allow complete customization. It's one reason I stay away from IDEs in general unless I can either substitute my favourite editor for the default one, or they have a really good emacs mode.

Of course, for me that means that Ctrl-Y means to paste whatever's in the kill ring to the cursor location, but I remember Ctrl-Y from the old Wordstar-based Borland editors in DOS.


Torben

Edit: I swear I didn't notice Nigel's post above on the Borland IDEs before I wrote this. I just happened to remember using Turbo Pascal and Turbo C in high school.
__________________
Curiosity was framed. Ignorance killed the cat.

Last edited by Torben; 24th June 2008 at 07:30 PM.
Torben is offline  
Old 24th June 2008, 07:27 PM   (permalink)
Default

Quote:
Originally Posted by dknguyen View Post
I use <END><SHIFT+HOME><BACKSPACE>...like the good old days before <CTRL> keys existed.
You mean typewriters? 'cause Ctrl has been around since teletype.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 24th June 2008, 07:44 PM   (permalink)
Default

use (g)VI(M)

dd deletes that line
d5 deletes 5lines its all win with vim
__________________
Nothing is impossible.
Once a problem is realised, the rest is just details


Styx is offline  
Old 24th June 2008, 10:06 PM   (permalink)
Default

Quote:
Originally Posted by dknguyen View Post
I use <END><SHIFT+HOME><BACKSPACE>
Cool new keyboard shortcut, you learn something everyday unless your in a vegetative state.
Krumlink is offline  
Old 24th June 2008, 10:08 PM   (permalink)
Default

Quote:
Originally Posted by Krumlink View Post
Cool new keyboard shortcut, you learn something everyday unless your in a vegetative state.
Four keystrokes to delete a line isn't really a shortcut. All that does is move to the end of the line, start highlight, highlight to start of line, and delete.

Most editors can do it in two keystrokes at most. EDIT: But the fastest almost always ends up being whatever you have stored in your own muscle memory.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.

Last edited by Torben; 24th June 2008 at 10:09 PM. Reason: Clarification.
Torben is offline  
Old 25th June 2008, 07:59 AM   (permalink)
Default

Quote:
Originally Posted by dknguyen View Post
I use <END><SHIFT+HOME><BACKSPACE>...like the good old days before <CTRL> keys existed.
That leaves a blank line. <HOME><SHIFT+DOWN CURSOR><BACKSPACE> mimics CTRL-Y.

Mike.
Pommie is offline  
Old 25th June 2008, 08:02 AM   (permalink)
Default

Quote:
Originally Posted by Pommie View Post
That leaves a blank line. <HOME><SHIFT+DOWN CURSOR><BACKSPACE> mimics CTRL-Y.

Mike.
Just getting my fingers to press that combo on my laptop is tough, it looks like I'm summoning a demon.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 25th June 2008, 08:49 AM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics View Post
Just getting my fingers to press that combo on my laptop is tough, it looks like I'm summoning a demon.
Try Ctrl-Shift-K to delete the entire current line, and Ctrl-K to delete from the cursor to the end of the line.

Does that work?


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 25th June 2008, 09:18 AM   (permalink)
Default

Never mind. I just installed MPLAB and that doesn't work. Also, the hot keys available for editing appear to be severely limited. Perhaps the MPLAB IDE editor really is that brain damaged. I don't know.

OK, yeah, we get it. The 15-minute limitation on edits is also brain damaged. Can we have the old behaviour back now?
__________________
Curiosity was framed. Ignorance killed the cat.

Last edited by Torben; 25th June 2008 at 09:18 AM.
Torben is offline  
Old 26th June 2008, 07:47 AM   (permalink)
Default

Quote:
Originally Posted by Styx View Post
use (g)VI(M)

dd deletes that line
d5 deletes 5lines its all win with vim
vi rulez .. i use it on widows as well .. the fastest editor out there ... bit hard on the noob's but powerful ..
arhi is offline  
Old 26th June 2008, 07:54 AM   (permalink)
Default

vi? OMG, what a pain that editor is... Unix nerds I thought Brief was a good editor.
Mikebits is online now  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Delete a post Electronics4you Chit-Chat 3 2nd August 2005 12:37 PM
delete xyz_sport Robotics Chat 0 13th October 2004 06:45 PM
Bring down the volume? grrr_arrghh General Electronics Chat 3 25th May 2004 04:48 PM
Why can't I delete this!?!? zachtheterrible General Electronics Chat 1 5th May 2004 07:22 AM
Moderators: Please delete this, thank you. Electric Rain Electronic Projects Design/Ideas/Reviews 4 11th November 2003 05:24 PM



All times are GMT. The time now is 07:17 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker