Mike :nixos: on Nostr: GREAT #HelixEditor trick someone here taught me! If you want to create a file in the ...
GREAT #HelixEditor trick someone here taught me!
If you want to create a file in the same directory as the file you have OPEN, you can do
:o
Then press Control + R, and hit %
That will put the full path of the file you have open.. and its easy to change the file name.
Same trick would be great if you want to delete the current file you have open
:sh rm <Ctr+r> %
Good stuff!
Published at
2024-12-03 18:58:15Event JSON
{
"id": "325dac537f39ac4eaab7079e096690d9b2089210f291b5b6e8dc825621ef622c",
"pubkey": "7743d6497523e4c3868bafe60fdf6f6d6da58b0e666f5b52c7c8b9970f7274b6",
"created_at": 1733252295,
"kind": 1,
"tags": [
[
"t",
"HelixEditor"
],
[
"imeta",
"url https://cdn.fosstodon.org/media_attachments/files/113/590/412/276/338/491/original/0a50ec50e8c66c80.png",
"m image/png",
"dim 522x287",
"blurhash U15E?X_4-?t7.AI9RPj[xvofaxogWExvayRi"
],
[
"proxy",
"https://fosstodon.org/users/codemonkeymike/statuses/113590422409722901",
"activitypub"
]
],
"content": "GREAT #HelixEditor trick someone here taught me!\n\nIf you want to create a file in the same directory as the file you have OPEN, you can do \n\n:o\n\nThen press Control + R, and hit %\n\nThat will put the full path of the file you have open.. and its easy to change the file name.\n\nSame trick would be great if you want to delete the current file you have open\n\n:sh rm \u003cCtr+r\u003e %\n\nGood stuff!\n\nhttps://cdn.fosstodon.org/media_attachments/files/113/590/412/276/338/491/original/0a50ec50e8c66c80.png",
"sig": "8c4007a06f781bb9be1097a4fb450a99bb11f155053e2c2a8d5a4f139d0884b9d9efeaac1cd694c30369d343376836a4bf3df5b76c96d75c4886beee208110ac"
}