Re: Hot-keys

Eric Laffoon <[email protected]>
Newsgroups gmane.comp.kde.devel.quanta.user
Organization KDE WebDev
Message-ID <[email protected]>
On Tuesday 22 July 2008 5:33:08 am malcolm wrote:
> Hello, All,
>
> I'm wondering if it's possible to bind a series of key-strokes to a
> hot-key. For example, i have some very large documents to re-format, and
> the lines are very short, so to lengthen them i find it necessary to press
> <end> <space> <del>, but it's easy to mis-stroke and run words together or
> introduce unwanted double-spaces.
>
> Can anyone tell me if it is possible to do this, and maybe - if it is -
> to give me some guidance?
>
> Thank you.
>
> Warmest Regards,
> malcolm
>

Please see the docs regarding Actions. They enable you to create scripts and 
bind a key. Now if you stop thinking in terms of keystrokes and think in 
terms of what you want to do you could...

- use sed to replace \n with a space in a selected block (in fact you could 
even do this with the find and replace using regexp)

- use DCOP to move the cursor

This is really just some of the possiblities. You could create a script that 
removes returns unless they are attached to tags for instance.


-- 
Eric Laffoon
Project Lead - kdewebdev module
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.