# Alt-del to remove a word to the left in the REPL

**URL:** https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517
**Category:** General Usage
**Tags:** repl, suggestions
**Created:** [May 21, 2024, 3:05pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517 "2024-05-21T15:05:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![1m1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1m1/32/21365_2.png) [@1m1](https://discourse.julialang.org/u/1m1)
#### Post date: [May 21, 2024, 3:05pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/1 "2024-05-21T15:05:06Z")

</div>

the macOS terminal has this feature and it is very useful

---

<div class="post-metadata">

### Author: ![aryavorskiy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aryavorskiy/32/43466_2.png) [@aryavorskiy](https://discourse.julialang.org/u/aryavorskiy)
#### Post date: [May 21, 2024, 3:13pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/2 "2024-05-21T15:13:09Z")

</div>

Are you on Windows? If yes, try `Ctrl+Backspace` to delete one word to the left, and `Ctrl+Delete` to delete one word to the right.

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [May 21, 2024, 3:33pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/3 "2024-05-21T15:33:59Z")

</div>

What’s your question? Are you asking how to enable this on Windows? It’s really a feature of your terminal — the Julia REPL supports it if the terminal sends the appropriate key codes.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [May 21, 2024, 3:44pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/4 "2024-05-21T15:44:29Z")

</div>

I guess there are many variables here but on Win 11, WezTerm with nushell I can use `Ctrl+Backspace` to delete a word to the left, but this doesn’t work in the Julia REPL (`Ctrl+Delete` doesnt work outside the REPL either)

---

<div class="post-metadata">

### Author: ![aryavorskiy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aryavorskiy/32/43466_2.png) [@aryavorskiy](https://discourse.julialang.org/u/aryavorskiy)
#### Post date: [May 21, 2024, 3:51pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/5 "2024-05-21T15:51:08Z")

</div>

Hmmm. Seems it depends on the terminal after all. The VSCode console works OK, but the Win11 terminal does not process these key combinations correctly (but `Ctrl+arrows` works; also all these combinations work outside the REPL). Looks like it is worth opening an issue.

---

<div class="post-metadata">

### Author: ![1m1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1m1/32/21365_2.png) [@1m1](https://discourse.julialang.org/u/1m1)
#### Post date: [May 21, 2024, 4:47pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/6 "2024-05-21T16:47:23Z")

</div>

i am on macOS (14.4.1) and when i run the julia (1.10.0) REPL in a standard macOS terminal, the alt-del (nor ctrl-del, nor cmd-del, nor fn-del) delete the word, even tho alt-del does work in the terminal itself (zsh)

i was suggesting to add the feature to the REPL

---

<div class="post-metadata">

### Author: ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)
#### Post date: [May 21, 2024, 5:05pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/8 "2024-05-21T17:05:51Z")

</div>

In Terminal.app’s preferences, select “use option key as meta” in the “Profiles” tab under “Keyboard”

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/f/5f1bef843da7e2654268088a94ca2c761069e4c9.png)

---

<div class="post-metadata">

### Author: ![1m1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1m1/32/21365_2.png) [@1m1](https://discourse.julialang.org/u/1m1)
#### Post date: [May 21, 2024, 5:12pm UTC](https://discourse.julialang.org/t/alt-del-to-remove-a-word-to-the-left-in-the-repl/114517/9 "2024-05-21T17:12:19Z")

</div>

ty, works!
