Notes

helix-editor

As of: 2024-08-07

How To ...

Convert Title-Case to Kebeb-Case

Example: Lorem Ipsum Dolor Sit Amet -> lorem-ipsum-dolor-sit-amet

1. convert the capital letters to lower case

keystrokes: xs[A-Z]<enter>~

  1. Select the line in Major Normal Mode -> x.
  2. Press s to enter Minor Select Mode.
  3. Enter [A-Z] in the command line to regex search for all capital letters.
  4. Press the Enter key to confirm the selction.
  5. Press ~ to sawp the case.
2. replace spaces with dashes

keystrokes: xs<space><enter>r-

  1. Select the line in Major Normal Mode -> x.
  2. Press s to enter Minor Select Mode.
  3. Enter (space) in the command line to regex search for all spaces.
  4. Press the Enter key to confirm the selction.
  5. Press r then - to replace the character.