It is a powerful tool to use ctrl+del to delete the whole word after the cursor.
ctrl+del
I don't know if this is a bug but everytime when I use this for a word followed by a command, the backslash is removed also.
For example, ctrl+del with the cursor as below
foo |faa \textit{fee}
produces
foo textit{fee}.
foo textit{fee}
Is it possible to avoid deleting the backslash?
fixed in latest svn revision
On 14.03.2013 02:26, Thiago wrote:
It is a powerful tool to use |ctrl+del| to delete the whole word after the cursor. I don't know if this is a bug but everytime when I use this for a word followed by a command, the backslash is removed also. For example, |ctrl+del| with the cursor as below |foo |faa \textit{fee}| produces |foo textit{fee}|. Is it possible to avoiddeleting the backslash? ctrl+del to delete next word https://sourceforge.net/p/texstudio/discussion/907840/thread/092ef3e2/?limit=25#5422 Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/texstudio/discussion/907840/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/
It is a powerful tool to use |ctrl+del| to delete the whole word after the cursor.
For example, |ctrl+del| with the cursor as below
|foo |faa \textit{fee}|
|foo textit{fee}|.
Is it possible to avoiddeleting the backslash?
ctrl+del to delete next word https://sourceforge.net/p/texstudio/discussion/907840/thread/092ef3e2/?limit=25#5422
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/texstudio/discussion/907840/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/
Well, not with the current mechanism. It's provided by the editor component, which doesn't know that the backslash has a special meaning.
However, it should be quite simple to write a user script perfoming this action and reassign the shortcut:
Something like this may work (untested and possibly not handling all corner cases correctly):
%SCRIPT cursor.movePosition(1, cursorEnums.NextWord, cursorEnums.KeepAnchor) if (cursor.previousChar() == '\\') cursor.movePosition(1, cursorEnums.Left, cursorEnums.KeepAnchor) cursor.removeSelectedText()
You can find more on scripting in the user manual.
Log in to post a comment.
It is a powerful tool to use
ctrl+del
to delete the whole word after the cursor.I don't know if this is a bug but everytime when I use this for a word followed by a command, the backslash is removed also.
For example,
ctrl+del
with the cursor as belowfoo |faa \textit{fee}
produces
foo textit{fee}
.Is it possible to avoid deleting the backslash?
Last edit: Thiago 2013-03-14
fixed in latest svn revision
On 14.03.2013 02:26, Thiago wrote:
Well, not with the current mechanism. It's provided by the editor component, which doesn't know that the backslash has a special meaning.
However, it should be quite simple to write a user script perfoming this action and reassign the shortcut:
Something like this may work (untested and possibly not handling all corner cases correctly):
You can find more on scripting in the user manual.