|
| 1 | + |
| 2 | +# AndroidLogger |
| 3 | + |
| 4 | +## Introduction |
| 5 | +AndroidLogger was initially designed as an logcat lexer plugin of Notepad++, has evolved into a comprehensive toolkit with magic functionalities. |
| 6 | +Even if you are not an Android developer, it is very useful for you! |
| 7 | + |
| 8 | +Currently it supports 7.8.x ~ latest version of Notepad++. |
| 9 | + |
| 10 | +NOTE: It is recommended that you upgrade to a newer Npp version, taking 7.x as an example, the plugin toolbar is not displayed. |
| 11 | + |
| 12 | +# Usage |
| 13 | +## Quick Search |
| 14 | + |
| 15 | +Select text, then click the **[fast cmd]** to fire search quickly! |
| 16 | + |
| 17 | +**1. Supports several options to fire search depend on your use.** |
| 18 | +* /i : ignore case |
| 19 | +* /o : search opend files |
| 20 | +* /f : search folder |
| 21 | +* /r : recursive search folder and sub-folders |
| 22 | +* /s : detect src folder then search recursively |
| 23 | +* /m : mark word highlight |
| 24 | +* /w : match word not use regex |
| 25 | + |
| 26 | + |
| 27 | +**2. You can config search at [Settings] & [Common Cmds]** |
| 28 | + |
| 29 | +> Method1, config at settings |
| 30 | + |
| 31 | + |
| 32 | +> Method2, config at common cmds |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +## Execute CMD |
| 37 | +The [Common Cmds] support kinds of functions. |
| 38 | + |
| 39 | +1. adbcmd: adb, adbout |
| 40 | +```xml |
| 41 | +<adbcmd> |
| 42 | + <desc>run adb shell getprop and out to NPP</desc> |
| 43 | + <cmd>getprop</cmd> |
| 44 | + <param></param> |
| 45 | + <type>adbout</type> |
| 46 | +</adbcmd> |
| 47 | +``` |
| 48 | +2. oscmd: cmd, cmdout |
| 49 | +```xml |
| 50 | +<oscmd> |
| 51 | + <desc>start calculator</desc> |
| 52 | + <cmd>calc</cmd> |
| 53 | + <param></param> |
| 54 | + <type>cmd</type> |
| 55 | +</oscmd> |
| 56 | +<oscmd> |
| 57 | + <desc>start logcat and out to NPP</desc> |
| 58 | + <cmd>cmd /c</cmd> |
| 59 | + <param>adb logcat</param> |
| 60 | + <type>cmdout</type> |
| 61 | +</oscmd> |
| 62 | +``` |
| 63 | +3. nppcmd: search |
| 64 | +```xml |
| 65 | +<nppcmd> |
| 66 | + <desc>Find [the] in Current</desc> |
| 67 | + <cmd>search /i /r /s *.h *cpp</cmd> |
| 68 | + <param></param> |
| 69 | + <type>search</type> |
| 70 | +</nppcmd> |
| 71 | +``` |
| 72 | + |
| 73 | +## Logcat Lexer |
| 74 | +Essentially, it's a lexer for Android Logcat, you can custom color through NPP (Notepad++) preferences. |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +## Android Tools |
| 79 | +Supports capture screenshot and logs with filters. |
| 80 | + |
| 81 | + |
| 82 | +[Install] |
| 83 | +1. Push AndroidLogger.dll under "plugins" directory of Notepad++ |
| 84 | +2. Push AndroidLogger.xml under "plugins\Config" directory of Notepad++ |
| 85 | + |
| 86 | +[Features] |
| 87 | +1. Support lexer fot APP & RADIO Log, and cutomizable |
| 88 | +2. Support catching log on device: APP, RADIO |
| 89 | +3. Support Shell CMD on device. |
| 90 | +->(1) The shell cmd line must start with '>' and at the top of doc. |
| 91 | +->(2) Start with '#' is comment |
| 92 | +->(3) Empty line is permitted |
| 93 | +->(4) Freely use logcat, top & grep, tcpdump |
| 94 | +4. Support capture device screenshot, now just save at d:\device.bmp |
| 95 | + |
| 96 | +[NOTE] |
| 97 | +Compatible with Notepad++ 6.5 later version |
| 98 | + |
| 99 | +V1.1.0 |
| 100 | +1) adb cmd will not timeout! |
| 101 | +2) thread concurrent optimization |
| 102 | + |
| 103 | +V1.1.1 |
| 104 | +1) Fix rgb issue, now device screenshot is ok! |
| 105 | +2) Log & Shell concurrent optimization! |
| 106 | + |
| 107 | +V1.1.2 |
| 108 | +1) Fix when open style dialog, the fold margin is shown, should hide it! |
| 109 | + |
| 110 | +V1.2.0 |
| 111 | +1) Support custom keyword, your keywords your color! |
| 112 | +2) auto lexer for shell logcat cmd |
| 113 | +3) optimization adb shell output efficiencily! |
| 114 | + |
| 115 | +V1.2.1 |
| 116 | +1) Fix lexer to compatible with leading or trailing spaces! |
0 commit comments