The best editor.?

Message
Author
Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: The best editor.?

#31 Post by Jakob77 »

gimcrack wrote: Tue Nov 07, 2023 2:22 pm I always been using micro. I made micro better piggy banking on fzf as fzf has a pane window option. Which I use a script to use the fzf pane window as I'm using my micro text editor. I always like to jot notes fast while in the terminal. I use this script to do exactly that as an alias I simply call it sn as in simple notes.

alias sn="cd ~/.notes && ./sn.sh"

More details here;

https://github.com/linuxllc/sn

I access it while just typing sn at anytime. Jot my notes and hit Esc to exit(fzf) and never lose my place inside my terminal. Files get saved as Markdown documentation. To search your .md files(notes) is simple with the fzf pane windows. Since you can see part of your notes. As you accumulated more notes. Well you can simply use the fzf tool to find anything fast and efficient.

Thank you. It warms my soul when people give me what I ask for. :-)
If you have made a presentation of the script in another subject I would like the link so I can dig in deeper there instead of here.
I don't think it is relevant for my FeatherPad script because software has to be installed.
A main reason for my converting work is that I want it all to be clean MX.
But I still want to try to make it work and really understand the point. And I can't see micro so I don't think it works completely like it is supposed to.
When I execute the script (sn.sh) in Terminal I get some files in the left side and the content of the chosen one can be seen in the right side. So if I forgot the file name but remember the content I can browse quickly. Is that most of it.? :-)

User avatar
gimcrack
Posts: 305
Joined: Fri Dec 02, 2011 5:17 pm

Re: The best editor.?

#32 Post by gimcrack »

Do you even have micro install? You still can use FeatherPad as your text editor if you like. Just edit the script. Replace micro to featherpad.

"micro" "$file_to_edit"

to

"featherpad" "$file_to_edit"

After running the script you press Enter to enter your text editor. The script is calling for micro. So micro has to be install or reedit the script to call for featherpad instead of micro or any other text editor you prefer.

Jakob77
Posts: 661
Joined: Thu Feb 09, 2023 3:09 am

Re: The best editor.?

#33 Post by Jakob77 »

gimcrack

Yes, and it works well enough now. I can double click on a filename to open it in the editor.
And I can see the purpose with micro when you want to stay in Terminal.
A sweet little editor script. :-)









I have been scanning the subject to determine if it is FeatherPad or Geany that is the most popular Editor among the MX users. It is close race with a poor amount of statistic observations but if there are no objections I claim it to be FeatherPad.

User avatar
gimcrack
Posts: 305
Joined: Fri Dec 02, 2011 5:17 pm

Re: The best editor.?

#34 Post by gimcrack »

"I can see the purpose with micro when you want to stay in Terminal."

Plus I bring my sn script up with a simply typing out sn of how I got my setup. No need for a .desktop shortcut icon to click on.

I also got the script in a directory with the .md text notes at the same location. Same location, easy to find and search.

Post Reply

Return to “Chat”