View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0016929 | Scribus | Scripter | public | 2023-04-15 06:45 | 2023-04-16 14:36 |
| Reporter | ale | Assigned To | ale | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 1.7.0.svn | ||||
| Summary | 0016929: scripter console: running the code deletes it | ||||
| Description | in the scripter console, for both F9 and ctrl-F9, after the the command has run, the code gets deleted. | ||||
| Tags | No tags attached. | ||||
| Patch | No | ||||
|
|
somehow, i was under the impression that "run" was deleting my code... but it seems that right now only "run as console" does it. |
|
|
When running code with "Run as Console", this behavior is expected. |
|
|
why would this be expected? i don't really understand what "run as console" means, but if i type some code and run it, i would not expect that i need to retype it again for the next time i want to run it slightly differently. is it really necessary to delete it? what's the rational behind it? |
|
|
If there are two ways of running code, F9 and Ctrl+F9 , you should suspect these two ways provides different behaviors. "Run as console" is meant to mimic a command line console behavior, ie clear the command after running it. So yes, the behavior is not only expected, but in this case desired. So if you don't- want your code to be deleted, just use F9. |
|
|
ok, i get that. i will close this ticket as "there is nothing to do". a few considerations before doing so: - i was under the impression that F9 was also deleting the command, but i cannot reproduce it anymore (so i might just have picked the wrong command) - i wonder if it's really necessary/useful to have the "run as a console" feature (what's the use for it? this comes from a person that spends (too) much time in the terminal...) - the thing that makes the "run as console" not really useful in my eyes is that when i i'm in a console, i can press the up arrow to get the last command (and/or run commands from a text file that i can edit in the console itself) and there is some sort of autocomplete; in the scribus "run as console" i have no way to get back the command i've typed. - if there is no real use case for "run as console", would it be an option to remove It? |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-04-15 06:45 | ale | New Issue | |
| 2023-04-15 08:46 | ale | Note Added: 0050115 | |
| 2023-04-15 13:00 | jghali | Note Added: 0050116 | |
| 2023-04-15 13:00 | jghali | Note Edited: 0050116 | |
| 2023-04-16 10:26 | ale | Note Added: 0050122 | |
| 2023-04-16 12:52 | jghali | Note Added: 0050123 | |
| 2023-04-16 14:35 | ale | Note Added: 0050125 | |
| 2023-04-16 14:36 | ale | Assigned To | => ale |
| 2023-04-16 14:36 | ale | Status | new => closed |
| 2023-04-16 14:36 | ale | Resolution | open => no change required |