Hacker News new | past | comments | ask | show | jobs | submit | more _TwoFinger's comments login


Just an idea, if you find yourself unable to warm up to tiling:

  for_window [all] floating enable
It's stupid, but I've been using this for a couple of years now.


That’s interesting. So do you start the programs floating, and then put them in tiling mode sometimes? Or just avoid tiling completely? (It seems like that would be giving up a lot of the specific strengths of the window manager… but of course if it works for you, it works!)


I don't use the tiling at all.

I use the multiple desktops feature a lot, though. Some programs are pinned to a dedicated desktop and run all day. Others I start in (or move to, later) a numbered desktop, and switch to them by changing the desktop. Often, most of the desktops contain only one window.

I once used i3 and sway the right way, of course. I guess I had one too many of those programs that were not designed to work at arbitrary window sizes, added the above rule and called it a day.


Oh cool, didn’t realize i3 could be used non-tiling. Thanks!


Indonesians themselves call it "bahasa". I guess the user you responded to is either Indonesian, or has been there.


LOL, sibling comment voted to death, because I guess HNers know better than 2 native speakers (I am also one).

If you're talking about Indonesians refererring to Indonesian in an English language context, yeah some of them do this too (like the original commenter I replied to above), I can't imagine a context where an Indonesian would ask someone else in Indonesian if they understood "bahasa", because the Indonesian being asked would wonder "Which language do you mean?".

It would be like a Brit asking someone in London, "Do you speak language?".

But just like there's Singlish in Singapore, there's probably Indonesian English. Another pet peeve of mine is Indonesians using "married" as a verb (in an Indonesian sentence) instead of an adjective.


> If you're talking about Indonesians refererring to Indonesian in an English language context, yeah

yes, my only source for my previous comment was a passport control officer asking me "do you speak bahasa" at the airport :-)


Correct. I launched a product in Indonesia and our operations team there referred to the language as Bahasa.


Your command doesn't sort, only inverses the initial order. It's equivalent to

  :1,5 !tac


They mention history expansion, but only briefly. It is a favorite of mine. Learning the full syntax probably doesn't give good ROI these days of mice, but I think the following shortcut notations are worth knowing:

Everything but the last argument:

  % git add -p dir1
  % !!- dir2
  git add -p dir2
Everything but the command:

  % textadept a b c
  % vim !*
  vim a b c
Substitute a string (once):

  % echo helo world
  % ^lo^llo
  echo hello world
First and last arguments:

  % diff path/a/file path/b/file
  % diff !$ !^
  diff path/b/file path/a/file
A cool detail is that even a long quoted string containing spaces is considered a single argument, and it all works fine.

Also, the bangs can be anywhere on the command line, even inside other kinds of expansion; history expansion has highest priority of all.

Edit: the above is csh-style history expansion, available in bash as well.


I think M-C-f and M-C-b do that.


ADM-3A also has

- the : key to the right of the 0 on the number row, no Shift needed.

- the Enter key to the right of the P.

I've made both changes to my keyboard layout and, not surprisingly, it's quite convenient.

Downside is, you'll have to move the original keys somewhere else. But since I already intended to totally reshuffle all the non-alpha keys for RSI reasons, it wasn't an issue for me.


I'm in the process of rearranging my keyboard due to occasional mild pain. Mind if I ask what layout you ended up with for the other keys? Any experience with the more esoteric arrangements like triggering modifiers when holding down the home row keys?


Here is my current keyd configuration (on US QWERTY hardware): https://dpaste.org/aGp3o/slim (I'm not entirely happy with it, though.)

The one thing I wanted the most was to avoid any long presses. Everything that requires holding a modifier, even if I do it touch-typing style, with the opposite hand, is unpleasant (to me). So, besides moving most of the punctuation characters to lowercase positions, I also switched to sticky modifiers. (keyd might have some flaws wrt sticky modifiers, and they... get stuck. Not when I want them to be. I might try to go back to XKB.)

Regarding the home-row modifiers, I've only tried moving Control there. I always ended up triggering it by mistake when typing, because when you are typing fast, there is an almost unavoidable overlap in certain sequences, you press the next key before fully releasing the previous key. Some people advice practicing, other software provides various options with timeouts, it's a rabbit hole of work-arounds. So I settled with sticky modifiers.


You can still do it with awk, but with different "ergonomics":

  awk -F= '$2 ~ /[0-9]+/ { print $2 }'
With imaginative choice of FS and RS you can push it very far.

Whether other people having to deal with such code will appreciate your imagination is another matter, though.

Edit: I missed the detail where you want to specifically match "foo" as lhs, and anywhere on the line. So the correct condition would be even lengthier : ^ ) You have a valid point. Captures would provide for shorter patterns.


I remember one of the projects I was part of, in a big company.

It was called Voyager, and was about porting the company's software, that was currently running on SunOS/SPARC, to Linux/x86. (As SPARC was about to be EOL'd.)

Like Voyager, the space probe, it was about moving away from the Sun (OS) :-)


> it has poor handling of strings and I don't know how that fares with an editor extension language.

I guess the parent refers to Lua treating strings as simple byte arrays, whereas a text editor has to deal with characters in various encodings, some of which can be multi-byte.


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: