BartOtten

BartOtten

How do you all enter the pipe operator |>?

How do you all enter the pipe operator |> on your keyboard? I keep having troubles with it :frowning:

Most Liked

jswanner

jswanner

I’ve had the following in my Neovim/vim config for ~15 years for Ruby:

vim.api.nvim_set_keymap("i", "<c-l>", "<Space>=><Space>")

When I got into Elixir, I added the following:

vim.api.nvim_set_keymap("i", "<c-h>", "<Space><-<Space>")
vim.api.nvim_set_keymap("i", "<c-j>", "<Space>-><Space>")
vim.api.nvim_set_keymap("i", "<c-k>", "<Space>|><Space>")
cblavier

cblavier

You can also create a Siri shortcut and shout out “PIPE!” :stuck_out_tongue:

lud

lud

I made a vscode snippet for it, I just type pp<tab> and it writes a pipe op.

axelson

axelson

Scenic Core Team

On my keyboard layout (for Glove80/Ergodox EZ) I have a _ on my main layout (which I highly recommend for Elixir programming). And when I press alt + _ in emacs/VSCode a |> is inserted (I almost always want that space character as well).

AndyL

AndyL

I just tried this in neovim - going to keep it!!

vim.api.nvim_set_keymap("i", "pp<tab>", "|>")
vim.api.nvim_set_keymap("i", "aa<tab>", "->")

Where Next?

Popular in Dev Env & Tools Top

AstonJ
After reading the below in another thread… It got me wondering how many firms are actually using or encouraging their developers to use...
New
AndyL
With this week’s release, ElixirLS bundles an experimental MCP Server. (see CHANGELOG) Highlights Added Call hierarchy provider imple...
New
ricksonoliveira
Hey folks, I have been looking for an alternative to good old VsCode for a while. Have tried some vim and emacs editors with their plugi...
New
Cervajz
Code at the speed of thought Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter. It’s also open...
New
brightball
Since the keyboard thread has been going strong for a while I wanted to start a similar thread for desk chair recommendations. I’m in the...
New
dewetblomerus
Setting up Cursor Background Agents to work with Elixir was a pain, which led me to publish a Docker image just for this and write a blog...
New
sodapopcan
I just placed on an order for my first mechanical watch since I last wore one in my mid 20s which was… oh boy, technically decadeS ago (t...
New
SyntaxSorcerer
I found Elixir after a friend recommended looking into it for developing a multi-agent orchestration and task management system. Soon aft...
New
AstonJ
I wasn’t aware ZSH has plugins until @Samjowen mentioned one in the Share an Elixir or dev-env tip a day thread! Oh My Zsh comes bundle...
New
sodapopcan
I get the impression that the Elixir community at large is using nvim, though it occurred to me that I don’t actually know this so I thou...
New

Other popular topics Top

yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
William
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 49522 488
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

We're in Beta

About us Mission Statement