question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicated first line (In filename and content)

See original GitHub issue

Hey,

Thank you so much for making this amazing plugin. It’s by far my favorite and I use it all the time.

The following is perhaps more of a feature request, which I believe was already possible in a past version.

Example

I have the following in my daily note:

this is a new topic

here's some more stuff about that content
and here's some more.

Now when I use “Extract selection to new note - first line as filename”

I get the following

NOTE TILE: this is a new topic
this is a new topic

here's some more stuff about that content
and here's some more.

I’d like the first line of the content not to repeat, so that it becomes only the file name, but not duplicate the first line it in the content of the note.

Resulting in this

NOTE TILE: this is a new topic

here's some more stuff about that content
and here's some more.

I believe the first released it available with manual download of folder for 0.9.7 had this way of doing things, but I might be wrong.

Would love to have this option, whether that is through the settings, or as an extra function in the command palette.

Thank you so much for your hard work!

– Santi

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
santiyoungercommented, Nov 2, 2020

thank you so much, that is exactly what I needed! appreciate you taking the time to add this, it’s great

0reactions
lynchjamescommented, Nov 1, 2020

This can now be done explicitly with Exclude First Line configuration setting, see usage table for details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I find the duplicate lines in a file, output them with ...
It display duplicate lines but how to display file name as well to identify which file has duplicate? And above command work only...
Read more >
Find first duplicate line in a file - linux
I want to find the first duplicate line in a text file. The way I usually find duplicate lines in a file is...
Read more >
How to Find Duplicate Data in a Linux Text File With uniq
If you have a text file with duplicate content in that you want to remove, it's time to learn how to use the...
Read more >
uniq Command in LINUX with examples
In simple words, uniq is the tool that helps to detect the adjacent duplicate lines and also deletes the duplicate lines. uniq filters...
Read more >
Show locations of duplicate lines across multiple files
I used the sed command to trim all trailing and leading whitespaces and remove empty lines, making the uniq -d get only the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found