Messages - DyNama [ switch to compact view ]

Pages: [1] 2 3 4 5 6 ... 15next
1
I still love TIMU too, use it frequently!

2
N.A.N.Y. 2016 / Re: NANY 2016 - txtproc
« on: January 08, 2016, 06:38 PM »
pretty fab!

3
Here's something else TIMU could help me with. Occasionally i want to edit a greasemonkey javascript so i open it in notepad, and it looks like this:

Code: Javascript [Select]
  1. // ==UserScript==// @name        Mouseover Popup Image Viewer// @namespace   http://w9p.co/userscripts/// @description Shows images and videos behind links and thumbnails.// @version     2015.10.11.1// @author      kuehlschrank// @homepage    http://w9p.co/userscripts/mpiv/// @icon        https://w9p.co/userscripts/mpiv/icon.png// @grant       GM_getValue// @grant       GM_setValue// @grant       GM_xmlhttpRequest// @grant       GM_openInTab// @grant       GM_registerMenuCommand// @grant       GM_setClipboard// ==/UserScript==

but if i paste it into TIMU input box, it looks like this without any editing:

Code: Javascript [Select]
  1. // ==UserScript==
  2. // @name        Mouseover Popup Image Viewer
  3. // @namespace   http://w9p.co/userscripts/
  4. // @description Shows images and videos behind links and thumbnails.
  5. // @version     2015.10.11.1
  6. // @author      kuehlschrank
  7. // @homepage    http://w9p.co/userscripts/mpiv/
  8. // @icon        https://w9p.co/userscripts/mpiv/icon.png
  9. // @grant       GM_getValue
  10. // @grant       GM_setValue
  11. // @grant       GM_xmlhttpRequest
  12. // @grant       GM_openInTab
  13. // @grant       GM_registerMenuCommand
  14. // @grant       GM_setClipboard
  15. // ==/UserScript==

It would seem in notepad carriage returns aren't being interpreted as carriage return+linefeed. if without edit, i press the output box Copy to Clipboard, the copy will still not have linefeeds when i paste it back into notepad.

But if i manually select the text in the output box with my mouse, it will have linefeeds! Pasted back into notepad, it will look like the latter!

I have a macro that works on the text in the clipboard, it simply replaces all the carriage returns with carriage return+linefeeds:

Code: C [Select]
  1. using System;
  2.  
  3. public static class ClipboardFusionHelper
  4. {
  5.     public static string ProcessText(string text)
  6.     {
  7.         return text.Replace("\n","\r\n");
  8.     }
  9. }

i copy the "unformatted" javascript in notepad to clipboard, run the macro, paste it right back into notepad, and the text is now "formatted." Perhaps TIMU could do that too.

4
Fab, phitsc, love "Remove characters" and command line options! I had Replaced spaces with commas, then Delete to Tag entering a comma, now all I have to do is Remove characters -p 45!

Oddly enuf, I had requested a function to remove padding, while lanux128 is wanting a function to add padding, which I can see could be very useful, since I am editing text tables too. I played with lanux128's text for a while in TIMU, i could not figure out a way to pad all the lines to a certain length.

I had been pasting the output from TIMU into a spreadsheet just to add up the numeric values, then I got a macro to Sum All Values in the clipboard, but this would also be a good trick for TIMU! Sum the values of every line in input that starts with a number, ignoring any characters in each line after a number+delimiter, the output would be the input unchanged, with just an additional line at the bottom with the total.

TIMU is a fabulous utility! Thanx, phitsc!

5
no prob, phitsc, TIMU has so many functions already that I have fun figuring out how to do stuff!

Pages: [1] 2 3 4 5 6 ... 15next
Go to full version