Automate Repetitive Task using Notepad++ Macro (With 3 Examples)

  Рет қаралды 19,886

Chris Amit

Chris Amit

Күн бұрын

Пікірлер: 29
@AmitChristian
@AmitChristian 3 жыл бұрын
⚡ Hello Friends ⚡ hope you found this useful! Do Subscribe ♥ to my channel (kzbin.info/door/bU0jmMgFAfmL1J1BHsEmAA) for more videos. 🚩 Let me know what other types of videos you want to see in the future!!
@ricardosupersad626
@ricardosupersad626 3 жыл бұрын
Thanks again for the good content
@AmitChristian
@AmitChristian 3 жыл бұрын
Glad you enjoy it!
@tagates001
@tagates001 12 күн бұрын
actually at @1:39
@BensometimesGIS
@BensometimesGIS Жыл бұрын
Brilliant
@AmitChristian
@AmitChristian Жыл бұрын
Thanks.
@rinoingenito1852
@rinoingenito1852 Жыл бұрын
Can I add a button in toolbar for a saved macro?
@AmitChristian
@AmitChristian Жыл бұрын
I don’t think so. But you can setup a keyboard shortcut.
@vasilisnikitaras
@vasilisnikitaras Жыл бұрын
Amazing
@AmitChristian
@AmitChristian Жыл бұрын
Thank you! Cheers!
@abdulrahmanmohamed8825
@abdulrahmanmohamed8825 3 жыл бұрын
Thank you. This approach of correcting typos is great, I will search for auto correct function and inform you if I found it. Also let me know if you found it by replying to this comment. Good Luck.
@AmitChristian
@AmitChristian 3 жыл бұрын
Thanks. Another option is to install a plugin like NppSnippets (nppsnippets.readthedocs.io/en/latest/usage.html). You can create a "language bundle" like autocorrection. And then add all possible auto correct words. It will still be manual work, though over the time you may be able to build a good list of words. I may make a video about it in near future. (Please subscribe to my channel, if you haven't already). Thanks again.
@abdulrahmanmohamed8825
@abdulrahmanmohamed8825 3 жыл бұрын
@@AmitChristian I didn't know how Microsoft Word auto correct words until yesterday, it has a list of wrong words and the correction of it. Like if you type "abbout". Word will auto correct it to "about" ... so it's not something like AI that would correct words from the meaning of text, It's just a pre-defined list of words that you can add to it by yourself the same as your suggestion here. I even made a quick search online for a list of pre-defined words to add it to Word so that it auto correct more and more words but didn't find a thing and I think this is not possible (Maybe you could manipulate the Word software files from inside to insert new words to the list but there is no ready list online, I guess). You can access this list in Word from "File" menu >> Options >> Choose "Proofing" from left panel >> click on "AutoCorrect Options" button from right panel. I will try "NppSnippets" although I don't know how it operates but looks like it works using SQL functions. I will figure it out. Thanks for your efforts and attention.
@AmitChristian
@AmitChristian 3 жыл бұрын
@@abdulrahmanmohamed8825 Exactly. MS Word is not using some AI, but just a set of commonly mistyped words and their correction. You can build that yourself. In fact, if you go online and search for common typos, I am sure you will find a whole list of it. BTW, if you are looking for more context-based auto AI correction, I would suggest to try out Grammarly ( www.grammarly.com/office-addin ), it is a Chrome Extension and it can really look at your text and suggest corrections accordingly. (One caution: It may send your text to their cloud service for recommendations, so if you are working on a confidential text, just read their policies). However, for just regular text editing, it is a great tool.
@abdulrahmanmohamed8825
@abdulrahmanmohamed8825 3 жыл бұрын
@@AmitChristian Okay, Now I guess this would be impossible to do AutoCorrect in Notepad++ like MS Word does. Notepad++ is a "text editor" and not "word processor" like MS Word, and AutoCorrect need the nature of "word processor" software. This means to AutoCorrect in Notepad++, we need workaround and want be actually called AutoCorrect anymore because it won't run as the same you type, it would be something like a macro or script or whatever that you initiate it to replace all pre-defined typos with your list. I guess this is the end for me here because this would consume a lot time and I guess won't be able to do it anyway because I'm not professional and I would need to search a lot in my process of doing something like that. It's the same thing when I tried to search for styling my text file. Like make a word Bold or change this font for this line..etc. But I found this is something for Word Processor software. community.notepad-plus-plus.org/topic/17157/mimic-ms-word-font-box Some links for reference: stackoverflow.com/questions/37912184/is-it-possible-to-replace-text-automatically-in-notepad-from-the-command-line superuser.com/questions/223016/can-i-search-and-replace-in-a-notepad-macro superuser.com/questions/376288/how-do-i-add-input-to-my-macro-to-replace-text-in-notepad www.rarst.net/software/notepadpp-macro-for-repetitive/
@AmitChristian
@AmitChristian 3 жыл бұрын
@@abdulrahmanmohamed8825 Your conclusion is right. Notepad++ is a Text Editor and not a word processing tool (as the first link says). Its power comes from editing plain text, not the formatted text. Good luck in your quest. Thanks.
@emmanlopez8623
@emmanlopez8623 2 жыл бұрын
Tried doing this with my Notepad++ just wondering why the day after, the macro is no longer working and the shortcut key that I used ctrl + shift + c functions as copy and paste
@AmitChristian
@AmitChristian 2 жыл бұрын
Emman, did you install a new plugin meanwhile, or did you update your Notepad++? Does the macro work without using a keyboard shortcut? You can go to Macro >> Modify macro keyboard shortcut to find out which other command had a conflict for ctrl+shift+c key.
@emmanlopez8623
@emmanlopez8623 2 жыл бұрын
@@AmitChristian Thank you so much for the reply. I really don't know how to check this plugin. I'm using the Notepad++ on a work provided PC so I only have limited access and function as to what I should add/install. I believe that yhe shortcut that I chose is no conflict with others since it's totally working fine at the beginning. The day after, the shortcut key will now have a function same as ctrl + c
@youneskhouloud2504
@youneskhouloud2504 2 жыл бұрын
hey amit i want to know How to bookmark lines around a line containing a specific expression 'XXX'
@AmitChristian
@AmitChristian 2 жыл бұрын
Take a look at this video, I show how to use Mark tool to bookmark lines. kzbin.info/www/bejne/gJangJ-mm96nj6c (Basically, you can press Ctrl+M to get the Mark search. Search for the specific expression 'abc...' and then check the box that say 'Bookmark Line'. And it will search for that keyword and add bookmarks to them. )
@espectrograma
@espectrograma 2 жыл бұрын
Hi Amit. See what happened when practicing with the third example (combining a list of first and last names in a single line). We have 23 states in Brazil, some with a single name, others with two or more names. I've put them all each one in a single line, positioned the cursor at the beginning of the first name and start recording the macro, pressed End + comma + space + delete, and then stopped the macro (I didn't use quotes). Then, Run multiple times, Current recorded macro and Run until the end of file. The result was: 1) it executed only until the second line of the maximized page; 2) left the other lines as they were before, one under the other; and 3) the state of Rio Grande do Norte, was separated like this: Rio Grande do, with Norte on the third line. - Before the trying with the states, I tried with the ten names of your example, each one with two words, and it worked well. - Do you think there's a bug on my app, or I must have done something wrong? Thank you.
@AmitChristian
@AmitChristian 2 жыл бұрын
Edgar, this can be due to some additional spaces/tabs that are not visible in Notepad++. Go to View >> Show Symbols >> Show All Characters. And check if there are some additional characters in each line.
@espectrograma
@espectrograma 2 жыл бұрын
@@AmitChristian Thanks.
@davidwilsondxc460
@davidwilsondxc460 2 жыл бұрын
Please how do you reverse this? I have details in quotes, I want to remove the quotes. Please help
@AmitChristian
@AmitChristian 2 жыл бұрын
You can do that with find and replace, take a look at this video, while not directly related to quotes, it may give you a good idea of how to remove quotes. ( kzbin.info/www/bejne/nHPSn3yAa5atqtE )
@davidwilsondxc460
@davidwilsondxc460 2 жыл бұрын
@@AmitChristian ok thanks a lot for. Replying, will check it out.
@youneskhouloud2504
@youneskhouloud2504 2 жыл бұрын
@@AmitChristian hey amit i want to know How to bookmark lines around a line containing a specific expression 'XXX'
@tagates001
@tagates001 12 күн бұрын
@1:23
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Personal Macro Workbook - Reuse Macros in Any Workbook in Excel
8:29
How I make beautiful GRAPHS and PLOTS using LaTeX
28:46
Dr. Trefor Bazett
Рет қаралды 489 М.
Automate task with Notepad++ macro | Automate task using Notepad++
15:03
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 446 М.
Learn Excel MACROS in 10 Minutes Using Real World Examples
9:13
Kenji Explains
Рет қаралды 1,2 МЛН