mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-05-31 18:19:40 +02:00
changed version to 0.3.4; improved notifications tree print a bit
This commit is contained in:
parent
1dc1317075
commit
2e259cb3ac
@ -32,6 +32,7 @@ const String locationArg = "location";
|
|||||||
const String lnQrFlag = "lnqr";
|
const String lnQrFlag = "lnqr";
|
||||||
|
|
||||||
Future<void> main(List<String> arguments) async {
|
Future<void> main(List<String> arguments) async {
|
||||||
|
|
||||||
|
|
||||||
final parser = ArgParser()..addOption(requestArg) ..addOption(pubkeyArg, abbr:"p")..addOption(prikeyArg, abbr:"k")
|
final parser = ArgParser()..addOption(requestArg) ..addOption(pubkeyArg, abbr:"p")..addOption(prikeyArg, abbr:"k")
|
||||||
..addOption(lastdaysArg, abbr:"d") ..addOption(relayArg, abbr:"r")
|
..addOption(lastdaysArg, abbr:"d") ..addOption(relayArg, abbr:"r")
|
||||||
|
@ -30,6 +30,7 @@ Future<void> processAnyIncomingEvents(Store node, [bool printNotifications = tru
|
|||||||
List<int> numPrinted1 = [0,0,0];
|
List<int> numPrinted1 = [0,0,0];
|
||||||
if( printNotifications) {
|
if( printNotifications) {
|
||||||
// print all the new trees, the ones that we want to print
|
// print all the new trees, the ones that we want to print
|
||||||
|
print("");
|
||||||
numPrinted1 = node.printTreeNotifications(newEventIds);
|
numPrinted1 = node.printTreeNotifications(newEventIds);
|
||||||
|
|
||||||
// need to clear because only top 20 events in each thread are printed or cleared with above
|
// need to clear because only top 20 events in each thread are printed or cleared with above
|
||||||
@ -479,6 +480,7 @@ int showMenu(List<String> menuOptions, String menuName, [String menuInfo = ""])
|
|||||||
stdout.write("Type option number: ");
|
stdout.write("Type option number: ");
|
||||||
String? userOptionInput = stdin.readLineSync();
|
String? userOptionInput = stdin.readLineSync();
|
||||||
String userOption = userOptionInput??"";
|
String userOption = userOptionInput??"";
|
||||||
|
|
||||||
userOption = userOption.trim();
|
userOption = userOption.trim();
|
||||||
if( userOption == 'x') {
|
if( userOption == 'x') {
|
||||||
userOption = menuOptions.length.toString();
|
userOption = menuOptions.length.toString();
|
||||||
@ -1596,6 +1598,20 @@ void directRoomNotifications(Store node, [int x = 0, int y = 0]) {
|
|||||||
|
|
||||||
Future<void> mainMenuUi(Store node) async {
|
Future<void> mainMenuUi(Store node) async {
|
||||||
|
|
||||||
|
var n;
|
||||||
|
|
||||||
|
/* TODO
|
||||||
|
ProcessSignal.sigint.watch().listen((signal) {
|
||||||
|
print(" caught ${n} of 3");
|
||||||
|
clearScreen();
|
||||||
|
print("\nExiting. Writing file $gEventsFilename. ");
|
||||||
|
if( gEventsFilename != "") {
|
||||||
|
node.writeEventsToFile(gEventsFilename);
|
||||||
|
}
|
||||||
|
exit(0);
|
||||||
|
}); */
|
||||||
|
|
||||||
|
|
||||||
clearScreen();
|
clearScreen();
|
||||||
|
|
||||||
//Show only notifications
|
//Show only notifications
|
||||||
|
@ -3,7 +3,7 @@ import 'package:logging/logging.dart';
|
|||||||
|
|
||||||
// name of executable
|
// name of executable
|
||||||
const String exename = "nostr_console";
|
const String exename = "nostr_console";
|
||||||
const String version = "0.3.3-beta-a";
|
const String version = "0.3.4-beta";
|
||||||
|
|
||||||
int gDebug = 0;
|
int gDebug = 0;
|
||||||
int gSpecificDebug = 0;
|
int gSpecificDebug = 0;
|
||||||
|
@ -1630,7 +1630,7 @@ class Store {
|
|||||||
ret[0] += temp[0];
|
ret[0] += temp[0];
|
||||||
ret[1] += temp[1];
|
ret[1] += temp[1];
|
||||||
ret[2] += temp[2];
|
ret[2] += temp[2];
|
||||||
print("\n");
|
//print("\n");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
name: nostr_console
|
name: nostr_console
|
||||||
description: A multi-platform nostr client built for terminal/console
|
description: A multi-platform nostr client built for terminal/console
|
||||||
version: 0.3.3-beta-a
|
version: 0.3.4-beta
|
||||||
homepage: https://github.com/vishalxl/nostr_console
|
homepage: https://github.com/vishalxl/nostr_console
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 0.3.4
|
# 0.3.4
|
||||||
# improved logic that only new events from follows are shown
|
# improved logic that only new events from follows are shown; this reduces the flood of notifications seen
|
||||||
# longer-named follows were not getting tick mark at end. fixed it, now they get tick marks in posts, channels and in one liners for channels
|
# longer-named follows were not getting tick mark at end. fixed it, now they get tick marks in posts, channels and in one liners for channels
|
||||||
|
# fix lud06/16 qr code printing in profiles
|
||||||
|
|
||||||
# 0.3.3
|
# 0.3.3
|
||||||
# Linux arm64 build added; docker images pushed to github store; and improving of build process by @AaronDewes
|
# Linux arm64 build added; docker images pushed to github store; and improving of build process by @AaronDewes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user