Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember the path used for saving and loading files and use it by default next time #177

Open
x0rloser opened this issue Aug 22, 2024 · 1 comment
Labels
enhancement potential new feature

Comments

@x0rloser
Copy link
Contributor

If you are making and saving multiple separate captures in a row, packetry does not remember the previously used directory path.

For example if you need to capture 10 different logs of a device and want to save them to files like "C:\some\path\to\save\your\logs\in\capture1.pcap" to "C:\some\path\to\save\your\logs\in\capture10.pcap". You will need to navigate through the filesystem starting from "C:" for every file you save. So you would have to choose "C:", then "some", then "path", then "to", then "save", then "your", then "logs", then "in", and finally enter the filename "capture10.pcap". Doing this the first time is to be expected, but repeating all those steps 9 more times for each capture you need to do is painful.

It would be good if the file save dialog was opened to the last used directory so that all you need to do is click "save" and then enter "capture2.pcap". Then click save and enter "capture3.pcap".

The same goes for loading files where if you are comparing multiple capture logs you want to navigate through to the directory containing them all the first time only. Then when opening the next log it would open the file open in the last used directory so that you just pick the next file and dont have to navigate through the filesystem again.

An extension to this behaviour would be to save the last used folder in a settings file so that it would be "remembered" next time you run packetry and go to open or save a file. This would be handy if you are running multiple instances of packetry at once when comparing different logs side by side. As the first instance would navigate to your project directory containing all the logs, then the next instance you run of packetry would already know what directory to go to to open the next file from.

@x0rloser
Copy link
Contributor Author

I understand that the file choose dialog is GTK based, but there isn't even a text field where i could paste a full path and have it navigate directly to the directory that the full path is for. Instead I must separately choose each and every directory in a path to get to where the files are.

The current save/load file choosing is fine if doing a one off capture or load, but if the aim is to use packetry in a serious manner then it is going to involve saving and loading multiple captures.

@martinling martinling added the enhancement potential new feature label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement potential new feature
Projects
None yet
Development

No branches or pull requests

2 participants