Keyboard shortcut to transpose characters around cursorKeyboard shortcut to switch user accountsAssign keyboard shortcut to programRestore lost keyboard shortcutKeyboard shortcutkeyboard shortcut for latin hook fbinding keyboard shortcutKeyboard shortcut to type three backticks
What is the better use of concentration for a ranged valor bard with elven accuracy, greater invisibility or swift quiver?
Puzzling phrases
Help resolve territory acquisition design difference of opinion in MMO RTS
Multithreading program stuck in optimized mode but runs normally in -O0
What to do with developers who don't follow requirements?
What is the most life you can have at the end of your first turn with only three cards?
What is the name for a placename that contains what the thing is in a different language?
Why do some PCBs have the courtyard in the silkscreen layer?
Why couldn't the Romulans simply circumvent Starfleet's blockade?
What are the advantages of a mechanical swordsman? What upgrades would make him superior to a human?
Can only rich people become president?
How to write the sum of function inside LaTeX?
Left a meeting without apparent reason. What to do?
replacing single quotes with double quote in a file
What are those two silvery objects resting on Ben Kenobi's table when R2-D2 plays Princess Leia's message?
Building a phone charger 500 years ago
Why derailleur guard is present only on more affordable bicycles
Authentication versus Authorisation
Got an email saying my password is weak, reason for concern?
What is this hole on the left wing of the Eurofighter Typhoon?
Leaving car in Lubbock, Texas for 1 month
Function defined everywhere but continuous nowhere
Does microwaving food create particles that are not created when warming food by conventional means?
What to expect when pursuing a second doctorate in an unrelated field
Keyboard shortcut to transpose characters around cursor
Keyboard shortcut to switch user accountsAssign keyboard shortcut to programRestore lost keyboard shortcutKeyboard shortcutkeyboard shortcut for latin hook fbinding keyboard shortcutKeyboard shortcut to type three backticks
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
In Emacs (and MacOS) typing control+t will transpose the characters around the cursor in any input field. For example if I type
helol<c-t>
hello
results. Is there a way to do this in Ubuntu? I'm imagining a solution using something like sxhkd that involves copying the previous 2 characters, deleting them, and pasting a transposed version, but I imagine this would look distracting and take a little while to execute.
I already have Emacs keys enabled system wide but apparently this is not one of the shortcuts it offers.
shortcut-keys text
add a comment
|
In Emacs (and MacOS) typing control+t will transpose the characters around the cursor in any input field. For example if I type
helol<c-t>
hello
results. Is there a way to do this in Ubuntu? I'm imagining a solution using something like sxhkd that involves copying the previous 2 characters, deleting them, and pasting a transposed version, but I imagine this would look distracting and take a little while to execute.
I already have Emacs keys enabled system wide but apparently this is not one of the shortcuts it offers.
shortcut-keys text
On my Ubuntu 16.04.06,bash
shell, gnome-termnal, terminal set toemacs
,^T
works for me. If I typeabcd^T
I seeabdc
– waltinator
Jun 15 at 0:27
@waltinator it's true that some apps support^T
, but ideally I'd be able to use it across all apps, including my browser.
– Razzi Abuissa
Jun 15 at 1:04
A universal solution working both in terminal and in any app probably will not be available in linux. For terminal, indeed you can switch to emacs editing mode. For graphical applications, xdotool will work - it is not as distracting or slow as you fear, but it has its caveats. In addition, one would also need a way to disable the hotkey used to launch the xdotool script when a terminal is active.
– vanadium
Jun 15 at 14:52
add a comment
|
In Emacs (and MacOS) typing control+t will transpose the characters around the cursor in any input field. For example if I type
helol<c-t>
hello
results. Is there a way to do this in Ubuntu? I'm imagining a solution using something like sxhkd that involves copying the previous 2 characters, deleting them, and pasting a transposed version, but I imagine this would look distracting and take a little while to execute.
I already have Emacs keys enabled system wide but apparently this is not one of the shortcuts it offers.
shortcut-keys text
In Emacs (and MacOS) typing control+t will transpose the characters around the cursor in any input field. For example if I type
helol<c-t>
hello
results. Is there a way to do this in Ubuntu? I'm imagining a solution using something like sxhkd that involves copying the previous 2 characters, deleting them, and pasting a transposed version, but I imagine this would look distracting and take a little while to execute.
I already have Emacs keys enabled system wide but apparently this is not one of the shortcuts it offers.
shortcut-keys text
shortcut-keys text
asked Jun 14 at 18:19
Razzi AbuissaRazzi Abuissa
1011 bronze badge
1011 bronze badge
On my Ubuntu 16.04.06,bash
shell, gnome-termnal, terminal set toemacs
,^T
works for me. If I typeabcd^T
I seeabdc
– waltinator
Jun 15 at 0:27
@waltinator it's true that some apps support^T
, but ideally I'd be able to use it across all apps, including my browser.
– Razzi Abuissa
Jun 15 at 1:04
A universal solution working both in terminal and in any app probably will not be available in linux. For terminal, indeed you can switch to emacs editing mode. For graphical applications, xdotool will work - it is not as distracting or slow as you fear, but it has its caveats. In addition, one would also need a way to disable the hotkey used to launch the xdotool script when a terminal is active.
– vanadium
Jun 15 at 14:52
add a comment
|
On my Ubuntu 16.04.06,bash
shell, gnome-termnal, terminal set toemacs
,^T
works for me. If I typeabcd^T
I seeabdc
– waltinator
Jun 15 at 0:27
@waltinator it's true that some apps support^T
, but ideally I'd be able to use it across all apps, including my browser.
– Razzi Abuissa
Jun 15 at 1:04
A universal solution working both in terminal and in any app probably will not be available in linux. For terminal, indeed you can switch to emacs editing mode. For graphical applications, xdotool will work - it is not as distracting or slow as you fear, but it has its caveats. In addition, one would also need a way to disable the hotkey used to launch the xdotool script when a terminal is active.
– vanadium
Jun 15 at 14:52
On my Ubuntu 16.04.06,
bash
shell, gnome-termnal, terminal set to emacs
, ^T
works for me. If I type abcd^T
I see abdc
– waltinator
Jun 15 at 0:27
On my Ubuntu 16.04.06,
bash
shell, gnome-termnal, terminal set to emacs
, ^T
works for me. If I type abcd^T
I see abdc
– waltinator
Jun 15 at 0:27
@waltinator it's true that some apps support
^T
, but ideally I'd be able to use it across all apps, including my browser.– Razzi Abuissa
Jun 15 at 1:04
@waltinator it's true that some apps support
^T
, but ideally I'd be able to use it across all apps, including my browser.– Razzi Abuissa
Jun 15 at 1:04
A universal solution working both in terminal and in any app probably will not be available in linux. For terminal, indeed you can switch to emacs editing mode. For graphical applications, xdotool will work - it is not as distracting or slow as you fear, but it has its caveats. In addition, one would also need a way to disable the hotkey used to launch the xdotool script when a terminal is active.
– vanadium
Jun 15 at 14:52
A universal solution working both in terminal and in any app probably will not be available in linux. For terminal, indeed you can switch to emacs editing mode. For graphical applications, xdotool will work - it is not as distracting or slow as you fear, but it has its caveats. In addition, one would also need a way to disable the hotkey used to launch the xdotool script when a terminal is active.
– vanadium
Jun 15 at 14:52
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1151131%2fkeyboard-shortcut-to-transpose-characters-around-cursor%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1151131%2fkeyboard-shortcut-to-transpose-characters-around-cursor%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
On my Ubuntu 16.04.06,
bash
shell, gnome-termnal, terminal set toemacs
,^T
works for me. If I typeabcd^T
I seeabdc
– waltinator
Jun 15 at 0:27
@waltinator it's true that some apps support
^T
, but ideally I'd be able to use it across all apps, including my browser.– Razzi Abuissa
Jun 15 at 1:04
A universal solution working both in terminal and in any app probably will not be available in linux. For terminal, indeed you can switch to emacs editing mode. For graphical applications, xdotool will work - it is not as distracting or slow as you fear, but it has its caveats. In addition, one would also need a way to disable the hotkey used to launch the xdotool script when a terminal is active.
– vanadium
Jun 15 at 14:52