Author: zeth

  • Making ‘new line’ in Claude Code in the Kitty-terminal

    Setting the scene

    In my daily life, I use: Kitty as my terminal emulator and Tmux in it, which is a terminal multiplexer. For people who aren’t familiar with it, I would describe it like this:
    Kitty being a standard terminal emulator (like ‘Terminal’, ‘Iterm’).
    And Tmux being this application that I open up in Kitty and do everything inside. Tmux has a nice way of being more Keyboard-minded, with possibility to make tabs, windows and sessions in a better way.

    I’m used to having all terminal-things happening in Tmux in tabs and splits and windows; and I love it!

    My paper cut

    Claude Code runs in your terminal emulator. But there is a bug in Kitty, so you can’t make a new line in Claude Code: Shift+Enter sends the prompt – and not a new line. Even after running: /terminal-setup the issue persists.

    It was such a nuisance, that I actually tried having Claude running in iTerm instead, not running Claude with my other terminal commands.
    It was close to being fine, but then I just had two terminal applications to maintain and make shortcuts for.

    The solution

    TL;DR-solution

    Put the following in you kitty.conf :

    map --when-focus-on title:claude shift+enter send_text normal,application \x0a

    Descriptive solution

    I decided to try and solve it for Kitty instead.

    I found this post: Configuring Kitty Terminal for Claude Code Multi-line Input. Which was close!

    If I add this to my ~/.config/kitty/kitty.conf :

    map --when-focus-on title:claude shift+enter send_text normal,application \\\n

    And opened Claude Code and typed:

    Test[ENTER]

    then it became:

    Test\
    

    … making a newline, but with a redundant backslash with it.

    But if I added this instead:

    map --when-focus-on title:claude shift+enter send_text normal,application \x0a

    Then it works!

    Update / Consideration

    Maybe I should actually move away from Kitty. It seems to be more in the way, than it is helping me.

    All I do happens in Tmux anyway.

  • RSS Reader and news habits

    Every so often, I come back to the thought: “I wish I had a better flow of reading news/content”. If I don’t stay intentional with this, I feel like I bounce around whatever is the most fun or simply the path of least resistance. I often try to create habits, to nudge me in better directions – or keep me away from poor ones.

    Such as paying for the UnDistract Chrome Extension. Or deleting my Instagram account.

    I’ve tried setting up an RSS Reader a couple of times, and each time it slips out of my habits. I remember CGP Grey once saying (paraphrasing): “When trying to implement behavioural change ‘trying harder’ is the dumbest strategy there is”.

    RSS Readers

    Feedly

    I’ve tried using Feedly a couple of times, and every time it slips out of my habits to check it. And I kept blaming myself for it. But thinking about it, it is very revolved around ‘Today’ or ‘Newest’ post and ‘Being “done” today’. That, and the fact they they are desperately trying to implement some ‘AI Features’, that I’m not interested in, makes the interface muddy and annoying.

    Reeder.

    I’m trying to use this now, to see how that goes.

    Further reading

    Challenges

    Now I have a place to post my challenges with this setup, as I come across it. If I found solutions for it, I’ll write that as well.

    Challenge #1: People posting too much

    Look at this feed here:

    I don’t know how to solve, that Simon Willison and John Gruber posts as often as they do. They drown my feed. I’m not sure, how to solve this. I saw that RSS Reeder has some ‘Filter’-feature in the paid version, that I’ll try to give a whack. But do I then categorize/filter my RSS sources based on the frequency they post stuff.

    I should try to setup some filters.

    Challenge #2: Feeling stupid

    A situation that often happen, whenever I come back to the RSS ways, is that I end up feeling stupid. When browsing the web, I don’t think about how easily digestible the news are.

    But the things I wish I was reading more, is stuff like these:

    And it’s not that light reading, that stuff.

    I should definitely try to setup some filters.

    My own attempts and tricks

    • By subscribing to my own blog, in my RSS Reader, I can see how potential other subscribers see my content.
    • I think I’ll try to be dynamic in adding and removing feeds. So if something annoys me, either try to filter it – or unsubscribe it temporarily. Hoping that I gradually improve my feed to fit my current state of mind and interest.
  • Beginning of my Blog

    When setting up my new RSS Reader, I came across this blog post: https://www.swyx.io/learn-in-public . I severely liked it. Initially, I felt it was anxiety invoking, to publicly ask and answer all my stupid questions.

    But I really like it. In this world, where we consume so much from the internet, if feels good to, in whatever shape or form, contribute back to it.

    And also, I hope that I can use the internet a little bit as my accountability partner.