CN113535650B - File naming method and computing device - Google Patents
File naming method and computing device Download PDFInfo
- Publication number
- CN113535650B CN113535650B CN202110888247.1A CN202110888247A CN113535650B CN 113535650 B CN113535650 B CN 113535650B CN 202110888247 A CN202110888247 A CN 202110888247A CN 113535650 B CN113535650 B CN 113535650B
- Authority
- CN
- China
- Prior art keywords
- naming
- file
- rule
- target
- naming rule
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 230000004044 response Effects 0.000 claims abstract description 11
- 238000004891 communication Methods 0.000 description 17
- 230000008676 import Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000007723 transport mechanism Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000003442 weekly effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/164—File meta data generation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a file naming method, which is executed in a file manager of a computing device, and comprises the following steps: in response to an operation of moving the mouse to the current file name of the file, displaying a naming rule list, wherein the naming rule list comprises one or more naming rules, and each naming rule comprises one or more corresponding variables; receiving a target naming rule selected in the naming rule list, and determining one or more variable values corresponding to the target naming rule; and generating a new file name based on one or more variable values corresponding to the target naming convention so as to name the file based on the new file name. The invention also discloses corresponding computing equipment. According to the file naming method disclosed by the invention, the file can be named flexibly and efficiently.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a file naming method and a computing device.
Background
At present, the mainstream file manager does not support a regularized file naming method, and can not meet the requirements of users on quick and regularized named files. For example, in daily work, some periodic files exist, file name formats of the files are generally fixed and standard, file names have similarity, only differences of version numbers or time fields possibly exist, even if differences among the file names are small, in an actual operation process, each new file needs to be modified again according to the standard, multiple steps need to be operated, and operation efficiency is low.
In the prior art, naming of new files can be realized faster by copying file names of existing files, if two files are not in the same directory, the directory switching operation needs to be performed back and forth to finish copying, and the whole process can take a lot of time. Even if two files are in the same directory, the operation of searching the files is time-consuming under the condition of more files, and the operation efficiency is low for users. In addition, the file name after copying is generally modified according to the actual application scenario, so that the file naming format after copying may be changed, and a large difference is easily caused in the file naming result of the same type (for example, report type and weekly report type).
Therefore, a file naming method is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides a file naming method in an effort to solve or at least alleviate the above-presented problems.
According to one aspect of the present invention, there is provided a file naming method, for execution in a file manager of a computing device, the method comprising the steps of: in response to an operation of moving the mouse to the current file name of the file, displaying a naming rule list, wherein the naming rule list comprises one or more naming rules, and each naming rule comprises one or more corresponding variables; receiving a target naming rule selected in the naming rule list, and determining one or more variable values corresponding to the target naming rule; and generating a new file name based on one or more variable values corresponding to the target naming convention so as to name the file based on the new file name.
Optionally, in the file naming method according to the present invention, each naming convention contains at least two of a fixed character, a placeholder character, an argument and a time variable.
Optionally, in the file naming method according to the present invention, the target naming convention includes a fixed character and a variable character, the variable character including one or more of a placeholder character, an argument, and a time variable.
Optionally, in the file naming method according to the present invention, the target naming rule includes a fixed character and a placeholder character, and the step of generating a new file name includes: and acquiring a placeholder character value input by the placeholder character based on the target naming rule, and generating a new file name based on the fixed character value corresponding to the target naming rule and the placeholder character value.
Optionally, in the file naming method according to the present invention, the target naming rule includes a fixed character and a time variable, and the step of generating a new file name includes: acquiring current time, and determining the current time as a time variable value; and generating a new file name based on the fixed character value corresponding to the target naming rule and the time variable value.
Optionally, in the file naming method according to the present invention, the target naming rule includes a fixed character and an argument, and the step of generating a new file name includes: determining a self-increment variable value in the file name of the last file named based on the target naming rule, and determining a new self-increment variable value by adding 1 to the self-increment variable value; and generating a new file name based on the fixed character value corresponding to the target naming rule and the new argument value.
Optionally, in the file naming method according to the present invention, the step of naming the file based on the new file name includes: and responding to clicking operation of the mouse outside the file area, and replacing the current file name of the file with the new file name.
Optionally, in the file naming method according to the present invention, before responding to an operation of moving the mouse onto the file name, the configuration generates a naming rule list, which includes the steps of: receiving a configuration request for naming rules, and presenting a rule configuration interface on a system desktop; one or more naming rules configured based on the rule configuration interface are received, and a naming rule list is generated based on the one or more naming rules.
Optionally, in the file naming method according to the present invention, the rule configuration interface includes a rule configuration item to configure one or more naming rules based on the rule configuration item; wherein each naming convention includes a rule name and a corresponding rule.
Optionally, in the file naming method according to the present invention, the rule configuration interface includes a naming rule list, and the naming rule list displays one or more configured naming rules.
Optionally, in the file naming method according to the present invention, the method further includes the steps of: and responding to a dragging operation on the naming rule in the naming rule list, and adjusting the position of the naming rule in the naming rule list according to the dragging operation.
Optionally, in the file naming method according to the present invention, an export request for the naming rule list is received, and the naming rule list is exported and saved in a Json data format file; the Json data format file comprises key value pairs corresponding to each naming rule in the naming rule list respectively, wherein the key value pairs comprise rule names and corresponding naming rules.
Optionally, in the file naming method according to the present invention, before responding to an operation of moving the mouse to the current file name of the file, the method includes the steps of: one or more files are created.
According to one aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the file naming method as described above.
According to one aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform a method as described above.
According to the technical scheme, a user can configure a plurality of naming rules according to requirements to form a naming rule list, when the user needs to name the file according to the preconfigured naming rules, the naming rule list is displayed in response to the operation of the user so as to enable the user to select a target naming rule, and the file is named based on the values of one or more variables in the target naming rule. Therefore, according to the file naming method, the files can be named flexibly and efficiently, and a user can configure naming rules according to the needs by himself, and different naming rules are adopted for different scenes, so that the efficiency of naming the files is greatly improved.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a computing device 100 according to one embodiment of the invention;
FIG. 2 illustrates a flow diagram of a file naming method 200 in accordance with one embodiment of the present invention;
FIG. 3 illustrates a file naming schematic according to one embodiment of the present invention; and
Fig. 4 and 5 respectively show rule configuration interface diagrams according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic block diagram of an example computing device 100.
As shown in FIG. 1, in a basic configuration 102, a computing device 100 typically includes a system memory 106 and one or more processors 104. The memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing including, but not limited to: a microprocessor (UP), a microcontroller (UC), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of caches, such as a first level cache 110 and a second level cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations, the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, the application 122 may be arranged to execute instructions on an operating system by the one or more processors 104 using the program data 124.
Computing device 100 also includes storage device 132, storage device 132 including removable storage 136 and non-removable storage 138.
Computing device 100 may also include a storage interface bus 134. Storage interface bus 134 enables communication from storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to base configuration 102 via bus/interface controller 130. At least a portion of the operating system 120, applications 122, and data 124 may be stored on removable storage 136 and/or non-removable storage 138, and loaded into the system memory 106 via the storage interface bus 134 and executed by the one or more processors 104 when the computing device 100 is powered up or the application 122 is to be executed.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to basic configuration 102 via bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices such as a display or speakers via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via one or more communication ports 164 over a network communication link.
The network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR) or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a personal computer including desktop and notebook computer configurations. Of course, computing device 100 may also be implemented as part of a small-sized portable (or mobile) electronic device such as a cellular telephone, a digital camera, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-watch device, a personal headset device, an application-specific device, or a hybrid device that may include any of the above functions. And may even be implemented as servers, such as file servers, database servers, application servers, WEB servers, and the like. The embodiments of the present invention are not limited in this regard.
In an embodiment according to the invention, the computing device 100 is configured to perform a file naming method 200 according to the invention. Wherein the application of the computing device 100 contains a plurality of program instructions for executing the file naming method 200 of the present invention, such that the file naming method 200 of the present invention can be executed in the computing device 100.
According to one embodiment of the invention, the file manager 125 is included on the operating system of the computing device 100, and the file manager 125 contains a plurality of program instructions for executing the file naming method 200 of the present invention, such that the file naming method 200 of the present invention can be executed in the file manager.
FIG. 2 illustrates a flow diagram of a file naming method 200 according to one embodiment of the present invention. The file naming method 200 may be performed in a file manager 125 of a computing device (e.g., the aforementioned computing device 100).
It should be noted that when a user needs to name a file, in other words, when a user needs to modify the current file name of a file, the mouse may be moved to the file first, and in particular, the mouse may be moved to stay on the current file name of the file, so that the file manager of the computing device 100 performs naming the file by executing the method 200 of the present invention.
As shown in fig. 2, the method 200 begins at step S210. Before step S210 is performed, one or more files may be created.
In step S210, when detecting an operation of the user to move the mouse over the current file name of the file, a naming rule list is displayed in response to an operation of moving the mouse over the current file name of the file. One or more naming rules may be included in the naming convention list, each naming rule including a corresponding one or more variables. In this way, the user can select one naming rule conforming to the naming requirement of the file from all the naming rules displayed in the naming rule list.
The variables include fixed characters and variable characters. Here, a fixed character is a character in which values are kept consistent every time a file name is created, and which is not changed for different files; the variable character is a character whose value changes every time a file name is created. The variable characters comprise two types of occupation characters and built-in variables which are suitable for input. Built-in variables may include an argument and a time variable. That is, the variable character may include one or more of a placeholder character, an argument, and a time variable, and here, the present invention is not limited to a specific kind of variable character.
While for variables used in naming convention, each naming convention may contain a corresponding variable or variables, and in particular may contain one or more of a fixed character, a placeholder character, an argument variable, and a time variable. In other words, the present invention, when creating naming rules, can construct each naming rule based on one or more of a fixed character, a placeholder character, an argument variable, and a time variable. Different naming convention may be composed of different variables.
In one embodiment, each naming convention contains at least two of a fixed character, a placeholder character, an argument variable, and a time variable. In other words, each naming convention can be constructed based on at least two of a fixed character, a placeholder character, an argument, and a time variable.
Subsequently, in step S220, the target naming rule selected in the naming rule list is received, and one or more variable values corresponding to the target naming rule are determined. Here, the value corresponding to each variable, i.e., the variable value, is first determined from one or more variables contained in the target naming convention.
Specifically, when the target naming rule contains a fixed character, the fixed character value corresponding to the target naming rule can be directly determined; when the target naming rule contains the occupying character, determining the input occupying character value according to the input of the user; when the target naming rule contains an argument, the argument value of the last file named based on the target naming rule is first determined, and the value obtained by increasing the argument value of the last file by 1 is determined as the argument value of the current file.
Subsequently, in step S230, a new file name is generated based on one or more variable values corresponding to the target naming convention, so that the file is named based on the new file name.
For example, in one implementation, after generating the new file name, the new file name may be displayed in a file name area of the file, the user may click on any area outside the file area through the mouse, and then the file manager replaces the current file name of the file with the new file name in response to a click operation of the mouse outside the file area, thereby implementing renaming the file to the new file name.
According to some embodiments of the invention, the variables in the naming convention may include corresponding fixed characters and variable characters. Accordingly, the variables in the target naming convention include corresponding fixed characters and variable characters. Here, the variable character may include one or more of a placeholder character, an argument, and a time variable.
Based on this, after receiving a target naming rule selected by the user in the naming rule list, a fixed character and a variable character corresponding to the target naming rule are determined, and a variable character value corresponding to the file is determined. The file is then named based on the target naming convention, specifically, a new file name is generated based on the fixed character corresponding to the target naming convention and the variable character value corresponding to the file, so that the file is named based on the new file name.
According to one embodiment, the variables in the target naming convention selected in step S220 include anchor characters and placeholder characters, and accordingly, a new file name may be generated according to the following method:
The placeholder character value entered by the user based on the placeholder character of the target naming convention is obtained, i.e., the placeholder character value is determined from the user input. And, a fixed character value corresponding to the target naming rule is determined, for example, workdoc. Then, a new file name is generated based on the fixed character value corresponding to the target naming rule and the placeholder character value, and the file is named based on the new file name.
In one implementation, the placeholder character may be constructed from two $symbols, wherein the initial value between the two $symbols may be replaced according to the user-entered information, i.e., the initial value between the two $symbols may be replaced with the user-entered placeholder character value. Here, the initial value between two $symbols is, for example, input, so that the placeholder character may be represented as $input$, "input" being the initial value of the placeholder character that can be replaced. However, the present invention is not limited thereto.
In one implementation, the target naming convention constructed based on the fixed and placeholder characters may be implemented as work_doc $ input$. As shown in fig. 3, by presenting a fixed character value (workdoc) corresponding to the target naming convention and an initial value (input) of a placeholder character that can be replaced in the file name area, the user can further input the placeholder character value at the placeholder character displayed in the file name area. The file manager may then obtain the placeholder character value entered by the user. In addition, if the placeholder character value input by the user is not received, an initial value between two $symbols of the placeholder character is reserved, and the initial value of the placeholder character is used as the placeholder character value corresponding to the file to generate the file name.
In addition, in one implementation, each variable in the naming convention may include one or more, for example, the naming convention may include one or more fixed characters, as well as one or more placeholder characters. The target naming rule constructed based on the fixed character and the placeholder character may be implemented as work_doc $ input $ backup $ input $.
According to one embodiment, the variables in the target naming convention selected in step S220 include fixed characters and time variables, and accordingly, new filenames may be generated according to the following method:
By obtaining the current time from the operating system of the computing device and determining the obtained current time as the time variable value of the target naming convention (i.e., the time variable value corresponding to the file of the standby name). And, a fixed character value corresponding to the target naming rule is determined, for example, workdoc. Then, a new file name is generated based on the fixed character value corresponding to the target naming convention, the determined time variable value. In this way, files may be named based on new file names.
In one implementation, the Time variable may be represented as $/Time $, where "/Time" is an initial value of the Time variable that, when a file is named based on a target naming convention that includes the Time variable, will be replaced by a Time variable value that is determined based on the current Time to generate a new file name.
It should be noted that the time variable may include a plurality of time data formats. In one implementation, the time data format of the time variable may be dd.mm.yyyy. Where dd denotes a number (01 to 31) added with 0, MM denotes a month (01 to 12) added with 0, yyyy denotes a year of four digits, for example 2021. Based on this time data format, when the current time acquired is 2021, 7, 10, the time variable value is 10.07.2021.
It should be noted that the present invention is not limited to the above-described time data format. In some embodiments, the number d (1-31) may be a number other than 0, the month M (1-12) may be a number other than 0, and the year (00-99) may be a two-digit year.
According to one embodiment, the variables in the target naming convention selected in step S220 include fixed characters and argument, and accordingly, a new file name may be generated according to the following method:
First, a directory in which a file to be named is located is determined, whether a file named based on a target naming rule exists under the directory is determined, if so, a self-increment variable value in a file name of a last file named based on the target naming rule (i.e., a file previous to a current file to be named) is determined, and a new self-increment variable value, that is, a self-increment variable value corresponding to a file of a standby name is determined by adding 1 to the self-increment variable value. And, a fixed character value corresponding to the target naming rule is determined, for example, workdoc. Then, a new file name is generated based on the fixed character value corresponding to the target naming convention and the new argument value.
In addition, if the file named based on the target naming rule does not exist under the directory where the file to be named exists, a new self-increasing variable value is determined to be '1', and a new file name is generated based on the fixed character value corresponding to the target naming rule and the new self-increasing variable value '1'.
In one implementation, the target naming convention constructed based on the fixed character and the argument may be implemented as "work_doc $/Num $", where work_doc represents the fixed character, $/Num $ represents the argument, "/Num" is the initial value of the argument, and when naming a file based on the target naming convention including the argument, the determined new argument value replaces the initial value "/Num" of the argument to generate a new file name. If the file named based on the target naming rule does not exist in the directory where the file to be named is located, the generated new file name is work_doc_1. If there is already a file with a file name of work_doc_1 (a file named based on the target naming rule), then the new file name generated is work_doc_2. Accordingly, if there are already files with file names of work_doc_1 and work_doc_2, the file corresponding to work_doc_2 is the last file named based on the target naming rule, wherein "2" is the self-increment variable value of the last file, and the new self-increment variable value can be determined to be "3", then the new file name generated based on the fixed character value and the new self-increment variable value is work_doc_3.
According to one embodiment of the invention, the configuration generates a naming convention list prior to responding to a mouse movement to a file name. In particular, the file manager may receive a user's configuration request for naming rules, and present a rule configuration interface on the system desktop, such that the user may configure one or more naming rules based on the rule configuration interface. The file manager may then receive one or more naming rules configured by the user based on the rule configuration interface, and generate a naming rule list based on the one or more naming rules.
In one embodiment, the rule configuration interface includes one or more rule configuration items, and the user may configure to generate one or more naming rules based on the one or more rule configuration items. The rule configuration items include, for example, rule name items and corresponding rule items, and accordingly, each naming rule configured based on the rule configuration items includes a rule name uniquely corresponding thereto, and a rule corresponding to the rule name. It should be noted that after each configuration completes one naming convention, the naming convention generated by the configuration may be added to the naming convention list so that the configured naming convention is presented in the naming convention list on the rule configuration interface.
FIG. 4 illustrates a rule configuration interface diagram according to one embodiment of the invention. As shown in fig. 4, the rule configuration interface includes a naming rule list in which one or more naming rules that have been configured are displayed. In one implementation, a user may send a request to Add a new naming rule by clicking an Add button "Add" on the rule configuration interface, and the file manager displays a rule configuration item in the rule configuration interface in response to the request to Add the new naming rule, and in turn, receives the new naming rule configured by the user based on the rule configuration item.
It should be appreciated that when a new naming convention is generated in accordance with a user's request configuration, the naming convention list is updated by adding the new naming convention to the naming convention list, so that when a file is named thereafter, the newly added naming convention may be selected from the naming convention list, and the file may be named based on the newly added naming convention.
FIG. 5 illustrates a rule configuration interface diagram according to one embodiment of the invention. As shown in fig. 5, the naming rule list in the rule configuration interface includes a plurality of naming rules that have been configured, and the plurality of naming rules are arranged in a predetermined order, for example, in a configured chronological order. Each naming convention includes a unique corresponding rule name and a specific rule, respectively.
In one embodiment, as shown in fig. 5, based on the rule configuration interface presented on the system desktop, the user may send a move request for a naming rule by clicking a move button "Remove" on the rule configuration interface, and in turn, the user may adjust the order of naming rules in the naming rule list by a drag operation of the mouse. When the file manager detects a drag operation of a user on a naming rule in the naming rule list through a mouse, the relative position of the naming rule in the naming rule list is adjusted according to the drag operation in response to the drag operation on the naming rule in the naming rule list, and therefore the arrangement sequence of the naming rules in the naming rule list is adjusted. Therefore, the user can adjust the arrangement sequence of the naming rules according to the frequency of using each naming rule, so that the target naming rule can be selected quickly when the file is named.
According to one embodiment, a user may request export of a naming convention list at a convention configuration interface in order to use the naming convention list for other computing devices. As shown in fig. 4 and 5, the user may send a Export request for a list of naming rules by clicking on Export button "Export" on the rule configuration interface. The file manager may receive a user's export request for a naming rule list, and then export and save the naming rule list in a Json data format file in response to the export request for the naming rule list, wherein the Json data format file includes key value pairs corresponding to each naming rule in the naming rule list, each key value pair including a rule name and a corresponding naming rule, respectively.
It should be noted that the exported Json data format file may be provided to other computing devices for import into the file manager of the other computing devices, thereby using the same naming convention list in the file manager of the other computing devices. In particular, in other computing devices, the user may also send an import request for a list of naming rules by clicking on the import button "Import" on the rule configuration interface. The file manager may receive a user's import request for a naming convention list, and then in response to the import request for the naming convention list, may import a Json data format file stored in the computing device that corresponds to the naming convention list. In this way, naming of files based on a unified naming convention list at multiple computing devices can be achieved.
It should be appreciated that the import and export functionality based on naming rules enables naming rules to be provided to other computing devices in a transferable, replicable form, enabling unification of naming specifications of files at the application layer.
According to the file naming method, a user can configure a plurality of naming rules according to requirements to form a naming rule list, and when the user needs to name a file according to the preconfigured naming rules, the naming rule list is displayed in response to the operation of the user so that the user can select a target naming rule, and the file is named based on the values of one or more variables in the target naming rule. Therefore, according to the file naming method, the files can be named flexibly and efficiently, and a user can configure naming rules according to the needs by himself, and different naming rules are adopted for different scenes, so that the efficiency of naming the files is greatly improved.
A9, the method of A8, wherein the rule configuration interface includes a rule configuration item to configure one or more naming rules based on the rule configuration item; wherein each naming convention includes a rule name and a corresponding rule.
A10, the method of A8 or A9, wherein the rule configuration interface comprises a naming rule list, and one or more naming rules configured are displayed in the naming rule list.
The method of any one of A1-a10, wherein further comprising the steps of: and responding to a dragging operation on the naming rule in the naming rule list, and adjusting the position of the naming rule in the naming rule list according to the dragging operation.
The method of any one of A1-a11, wherein further comprising the steps of: receiving an export request for the naming rule list, exporting the naming rule list in a Json data format file and storing the naming rule list; the Json data format file comprises key value pairs corresponding to each naming rule in the naming rule list respectively, wherein the key value pairs comprise rule names and corresponding naming rules.
A13. the method of any of A1-a12, wherein, prior to responding to the operation of moving the mouse over the current filename of the file, comprising the steps of: one or more files are created.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the multi-lingual spam text recognition method of the present invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores information such as computer readable instructions, data structures, program modules, or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with examples of the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.
Claims (10)
1. A method of file naming performed in a file manager of a computing device, the method comprising the steps of:
The configuration generation naming rule list comprises the following steps: receiving a configuration request for naming rules, presenting a rule configuration interface on a system desktop, receiving a plurality of naming rules configured based on the rule configuration interface, generating a naming rule list based on the plurality of naming rules, and displaying the naming rule list in the rule configuration interface;
in response to a drag operation on a naming rule in the naming rule list, adjusting the position of the naming rule in the naming rule list according to the drag operation so as to adjust the arrangement sequence of the naming rules according to the frequency of use of each naming rule;
Responding to the operation of moving the mouse to the current file name of the file, and displaying a naming rule list, wherein the naming rule list comprises a plurality of naming rules which are configured and are arranged according to the configured time sequence, each naming rule comprises one or more corresponding variables, and different scenes correspond to different naming rules;
receiving a target naming rule selected in the naming rule list, and determining one or more variable values corresponding to the target naming rule;
generating a new file name based on one or more variable values corresponding to the target naming convention so as to name the file based on the new file name, wherein the method comprises the following steps of: responding to clicking operation of a mouse outside the file area, and replacing the current file name of the file with the new file name;
And receiving a export request for the naming rule list, exporting and storing the naming rule list in a Json data format file, wherein the Json data format file comprises key value pairs corresponding to each naming rule in the naming rule list, and the key value pairs comprise rule names and corresponding naming rules.
2. The method of claim 1, wherein,
Each naming convention contains at least two of a fixed character, a placeholder character, an argument, and a time variable.
3. The method of claim 1, wherein the target naming convention includes fixed characters and variable characters, the variable characters including one or more of placeholder characters, argument variables, and time variables.
4. The method of claim 3, wherein the target naming convention includes a fixed character and a placeholder character, and the step of generating a new filename includes:
and acquiring a placeholder character value input by the placeholder character based on the target naming rule, and generating a new file name based on the fixed character value corresponding to the target naming rule and the placeholder character value.
5. The method of claim 3, wherein the target naming convention includes a fixed character and a time variable, and the step of generating a new filename includes:
acquiring current time, and determining the current time as a time variable value;
and generating a new file name based on the fixed character value corresponding to the target naming rule and the time variable value.
6. The method of claim 3, wherein the target naming convention includes fixed characters and argument, the step of generating a new filename comprising:
Determining a self-increment variable value in the file name of the last file named based on the target naming rule, and determining a new self-increment variable value by adding 1 to the self-increment variable value;
And generating a new file name based on the fixed character value corresponding to the target naming rule and the new argument value.
7. The method of claim 1, wherein,
The rule configuration interface includes a rule configuration item to configure a plurality of naming rules based on the rule configuration item;
wherein each naming convention includes a rule name and a corresponding rule.
8. The method of any of claims 1-7, wherein prior to responding to the operation of moving the mouse over the current filename of the file, comprising the steps of:
One or more files are created.
9. A computing device, comprising:
at least one processor; and
A memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-8.
10. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110888247.1A CN113535650B (en) | 2021-08-03 | 2021-08-03 | File naming method and computing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110888247.1A CN113535650B (en) | 2021-08-03 | 2021-08-03 | File naming method and computing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113535650A CN113535650A (en) | 2021-10-22 |
CN113535650B true CN113535650B (en) | 2024-06-04 |
Family
ID=78090359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110888247.1A Active CN113535650B (en) | 2021-08-03 | 2021-08-03 | File naming method and computing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113535650B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114896224A (en) * | 2022-04-29 | 2022-08-12 | 阿里云计算有限公司 | Naming method, device and equipment of database table and storage medium |
CN116150447B (en) * | 2023-04-20 | 2023-06-30 | 北京盈建科软件股份有限公司 | Building structure component grouping numbering method and device based on agreed semantics |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105893548A (en) * | 2016-03-31 | 2016-08-24 | 深圳市金立通信设备有限公司 | Naming method and terminal |
CN106462595A (en) * | 2014-03-12 | 2017-02-22 | 三星电子株式会社 | Content management method and cloud server therefor |
CN111104382A (en) * | 2019-12-18 | 2020-05-05 | 北京明略软件***有限公司 | File default naming method and device and electronic equipment |
CN111813747A (en) * | 2020-07-09 | 2020-10-23 | 广东一一五科技股份有限公司 | File batch renaming method, electronic equipment and computer readable storage medium |
CN112015702A (en) * | 2020-09-15 | 2020-12-01 | 支付宝(杭州)信息技术有限公司 | Message file name processing method, device and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018085289A1 (en) * | 2016-11-02 | 2018-05-11 | Chef Software, Inc. | Compliance enforcement tool for computing environments |
-
2021
- 2021-08-03 CN CN202110888247.1A patent/CN113535650B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106462595A (en) * | 2014-03-12 | 2017-02-22 | 三星电子株式会社 | Content management method and cloud server therefor |
CN105893548A (en) * | 2016-03-31 | 2016-08-24 | 深圳市金立通信设备有限公司 | Naming method and terminal |
CN111104382A (en) * | 2019-12-18 | 2020-05-05 | 北京明略软件***有限公司 | File default naming method and device and electronic equipment |
CN111813747A (en) * | 2020-07-09 | 2020-10-23 | 广东一一五科技股份有限公司 | File batch renaming method, electronic equipment and computer readable storage medium |
CN112015702A (en) * | 2020-09-15 | 2020-12-01 | 支付宝(杭州)信息技术有限公司 | Message file name processing method, device and equipment |
Non-Patent Citations (1)
Title |
---|
杨兴平 ; .批量命名,想变就变.电脑知识与技术(经验技巧).2010,(10),28-29. * |
Also Published As
Publication number | Publication date |
---|---|
CN113535650A (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113535650B (en) | File naming method and computing device | |
WO2019085474A1 (en) | Calculation engine implementing method, electronic device, and storage medium | |
CN105988996B (en) | Index file generation method and device | |
CN113434205B (en) | Operating system starting method and computing device | |
US20210248622A1 (en) | Methods, apparatuses, and devices for generating digital document of title | |
US10417320B2 (en) | Providing insertion feature with clipboard manager application | |
CN110532016B (en) | Version management method, version updating method and version management system | |
CN113760276A (en) | Method and device for generating page code | |
CN113885915A (en) | Service updating method, module and system | |
CN114422502B (en) | Resource downloading method, computing device and storage medium | |
CN113485712B (en) | Kernel clipping method and computing device | |
CN116048609A (en) | Configuration file updating method, device, computer equipment and storage medium | |
CN114546678A (en) | Method for copying and pasting data, computing equipment and readable storage medium | |
CN110516169B (en) | Data display method, device and system and computing equipment | |
CN114879978A (en) | Software package dependency processing method, computing device and readable storage medium | |
CN111221817B (en) | Service information data storage method, device, computer equipment and storage medium | |
JP2006139676A (en) | Information management system | |
CN113468110A (en) | File management method and device, electronic equipment and storage medium | |
CN113656347B (en) | File directory export method, file directory import method and computing device | |
CN113590542A (en) | File searching method, computing device and storage medium | |
US20180074867A1 (en) | Provide copy of notebook document | |
CN114461113B (en) | Interaction method, processing device and computing equipment based on task bar | |
CN113742140B (en) | File backup method and device and computing equipment | |
CN113138806B (en) | Processing method and device for mobile application running environment | |
JP6124640B2 (en) | Document management apparatus, information processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |