Any ideas?
EDIT:
Here, I made a one line command window command that will generate a number of addresses for you that are related to your seed. combine it with two other lines (3 commands in a row) to get the addresses you want.
1. set an array called "addy" (line 1)
2. change the 50 in range(0,50) to tell the number of addresses you want to generate. However, from that number, any addresses with a history will be removed in the 3rd step. Also, the 0 can be changed to pick a staring point. (0 is first address, 1 is second address, 2 is third address, etc.)
3. just run the third line as is. It will print out all the addresses that don't have a tx history.
(Remember, don't copy over the ">>" when inputting)
>> addy = []
>> for i in range(0,50): addy.append(bitcoin.public_key_to_bc_address(('04' + '%064x' % (bitcoin.ecdsa.ellipticcurve.Point(bitcoin.ecdsa.ecdsa.curve_secp256k1, int(wallet.storage.get('master_public_key')[:64],16), int(wallet.storage.get('master_public_key')[64:],16), 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141L) + (int(bitcoin.Hash("%d:%d:"%(i,0) + wallet.storage.get('master_public_key').decode('hex')).encode('hex'),16) * bitcoin.ecdsa.ellipticcurve.Point(bitcoin.ecdsa.ecdsa.curve_secp256k1, 0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798L, 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8L, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141L))).x() + '%064x' % (bitcoin.ecdsa.ellipticcurve.Point(bitcoin.ecdsa.ecdsa.curve_secp256k1, int(wallet.storage.get('master_public_key')[:64],16), int(wallet.storage.get('master_public_key')[64:],16), 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141L) + (int(bitcoin.Hash("%d:%d:"%(i,0) + wallet.storage.get('master_public_key').decode('hex')).encode('hex'),16) * bitcoin.ecdsa.ellipticcurve.Point(bitcoin.ecdsa.ecdsa.curve_secp256k1, 0x79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798L, 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8L, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141L))).y()).decode('hex')))
>> print "\n".join(i for i in addy if len(wallet.history.get(i,{})) == 0)
VVV---OLD---VVV
print "\n".join(i for i in wallet.addresses() if len(wallet.history.get(i,{})) == 0 and not wallet.is_change(i))
Paste this into your console and it will only list addresses with 0 transaction history AND that are NOT CHANGE ADDRESSES.
NOTE: THIS WILL NOT LIST ADDRESSES WITH TRANSACTION HISTORY, EVEN WITH 0 BALANCE.
Notice the number of addresses listed will = your gap_limit. So before using the above command, use:
wallet.storage.put('gap_limit', XX)
1. Replace XX with the number of addresses you wish to generate, and then restart Electrum.
2. Run the "print "\n".join..." command
3. Copy the list that comes out of the console.
I think that electrum's console doesn't have a limit to the number of lines that can be displayed, but if you have any problems let me know.