Skip to content

Commit

Permalink
Bookmark format changed: sig-code-name
Browse files Browse the repository at this point in the history
  • Loading branch information
Afalinko committed Aug 11, 2017
1 parent 0318275 commit 08f5204
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# eve-bookmarks

Matches the clipboard content to site signature and replaces it with bookmark.
Format: [C? R D G]-*SIGID*-*SITE NAME*
Format: *SIGID*-[C? R D G]-*SITE NAME*

Build instrucations:
Install JDK 8 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Install Maven https://maven.apache.org/download.cgi
run "mvn clean package" in the project root folder

Run instructions:
run "java -jar bookmark-1.0-SNAPSHOT.jar"
run "java -jar bookmark-1.1-SNAPSHOT.jar"

4 changes: 2 additions & 2 deletions src/main/java/com/eve/copilot/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ private static String bookmarkFromScanLine(String scanLine){
String[] data_parts = scanLine.split("\t");
char type = data_parts[2].charAt(0);
if (type=='W'){
return "C?-"+data_parts[0].substring(0, 3)+"-K162";
return data_parts[0].substring(0, 3) + "-C?-K162";
} else {
return data_parts[2].charAt(0) + "-" + data_parts[0].substring(0, 3) + "-" + data_parts[3];
return data_parts[0].substring(0, 3) + "-" + data_parts[2].charAt(0) + "-" + data_parts[3];
}
}

Expand Down

0 comments on commit 08f5204

Please sign in to comment.